From fa6965df07c26abb74db6a2fe98b46d7313fea13 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 25 Jun 2023 14:51:19 +0200 Subject: XRefreshKeyboardMapping --- src/window/window.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/window') diff --git a/src/window/window.c b/src/window/window.c index 101fb42..1a8353c 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -815,6 +815,11 @@ static void mgl_window_on_receive_event(mgl_window *self, XEvent *xev, mgl_event event->type = MGL_EVENT_UNKNOWN; return; } + case MappingNotify: { + XRefreshKeyboardMapping(xev); + event->type = MGL_EVENT_UNKNOWN; + break; + } default: { event->type = MGL_EVENT_UNKNOWN; return; -- cgit v1.2.3