mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
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:
commit
1344ae2ddd
@ -664,6 +664,9 @@ static void x_input_poll(void *data)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Process keyboard */
|
||||||
|
XQueryKeymap(x11->display, x11->state);
|
||||||
|
|
||||||
/* If pointer is not inside the application
|
/* If pointer is not inside the application
|
||||||
* window, ignore mouse input */
|
* window, ignore mouse input */
|
||||||
if (!g_x11_entered)
|
if (!g_x11_entered)
|
||||||
@ -676,9 +679,6 @@ static void x_input_poll(void *data)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Process keyboard */
|
|
||||||
XQueryKeymap(x11->display, x11->state);
|
|
||||||
|
|
||||||
/* Process mouse */
|
/* Process mouse */
|
||||||
if (!XQueryPointer(x11->display,
|
if (!XQueryPointer(x11->display,
|
||||||
x11->win,
|
x11->win,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user