(X11) Enable keyboard input when mouse cursor is not inside the RetroArch window but window still has focus

This commit is contained in:
jdgleaver 2021-01-20 10:24:07 +00:00
parent fdfc4dda08
commit ce47fe7e28

View File

@ -664,6 +664,9 @@ static void x_input_poll(void *data)
return;
}
/* Process keyboard */
XQueryKeymap(x11->display, x11->state);
/* If pointer is not inside the application
* window, ignore mouse input */
if (!g_x11_entered)
@ -676,9 +679,6 @@ static void x_input_poll(void *data)
return;
}
/* Process keyboard */
XQueryKeymap(x11->display, x11->state);
/* Process mouse */
if (!XQueryPointer(x11->display,
x11->win,