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,