Merge pull request #11910 from jdgleaver/x11-keyboard-focus-fix

(X11) Enable keyboard input when mouse cursor is not inside the RetroArch window but window still has focus
This commit is contained in:
Autechre 2021-01-20 15:37:47 +01:00 committed by GitHub
commit 1344ae2ddd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,