From e07925c4047c4c5401369e0c6fe70bcab61e30c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Tue, 19 May 2020 17:49:02 +0200 Subject: [PATCH] X11: Fix XKB state event bits being overwritten This limits the update to the XKB group state event bit without clearing all other state event bits. --- src/x11_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/x11_init.c b/src/x11_init.c index 76e2cc0e..0aa0ff9a 100644 --- a/src/x11_init.c +++ b/src/x11_init.c @@ -809,7 +809,8 @@ static GLFWbool initExtensions(void) if (XkbGetState(_glfw.x11.display, XkbUseCoreKbd, &state) == Success) _glfw.x11.xkb.group = (unsigned int)state.group; - XkbSelectEventDetails(_glfw.x11.display, XkbUseCoreKbd, XkbStateNotify, XkbAllStateComponentsMask, XkbGroupStateMask); + XkbSelectEventDetails(_glfw.x11.display, XkbUseCoreKbd, XkbStateNotify, + XkbGroupStateMask, XkbGroupStateMask); } #if defined(__CYGWIN__)