mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(X11) Enable keyboard input when mouse cursor is not inside the RetroArch window but window still has focus
This commit is contained in:
parent
fdfc4dda08
commit
ce47fe7e28
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user