Start restricting scope of g_x11_has_focus

This commit is contained in:
twinaphex 2015-11-19 11:13:59 +01:00
parent 91144ed53f
commit d23557d38e
4 changed files with 2 additions and 3 deletions

View File

@ -304,6 +304,8 @@ unsigned x11_get_xinerama_monitor(Display *dpy, int x, int y,
bool x11_create_input_context(Display *dpy, Window win, XIM *xim, XIC *xic)
{
g_x11_has_focus = true;
*xim = XOpenIM(dpy, NULL, NULL, NULL);
if (!*xim)

View File

@ -557,7 +557,6 @@ static void *xv_init(const video_info_t *video,
x11_install_sighandlers();
xv_set_nonblock_state(xv, !video->vsync);
g_x11_has_focus = true;
driver->display_type = RARCH_DISPLAY_X11;
driver->video_display = (uintptr_t)g_x11_dpy;

View File

@ -535,7 +535,6 @@ static bool gfx_ctx_glx_set_video_mode(void *data,
XSetErrorHandler(old_handler);
XFree(vi);
g_x11_has_focus = true;
if (!x11_create_input_context(g_x11_dpy, g_x11_win, &glx->g_xim, &g_x11_xic))
goto error;

View File

@ -485,7 +485,6 @@ static bool gfx_ctx_xegl_set_video_mode(void *data,
XSetErrorHandler(old_handler);
XFree(vi);
g_x11_has_focus = true;
g_inited = true;
if (!x11_create_input_context(g_x11_dpy, g_x11_win, &g_xim, &g_x11_xic))