From ce47fe7e28a74a2417e4109251abc719b947d7f9 Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Wed, 20 Jan 2021 10:24:07 +0000 Subject: [PATCH] (X11) Enable keyboard input when mouse cursor is not inside the RetroArch window but window still has focus --- input/drivers/x11_input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/input/drivers/x11_input.c b/input/drivers/x11_input.c index 43ecffc31a..cc40069492 100644 --- a/input/drivers/x11_input.c +++ b/input/drivers/x11_input.c @@ -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,