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.

(cherry picked from commit e07925c404)
This commit is contained in:
Camilla Löwy 2020-05-19 17:49:02 +02:00
parent dff64496d6
commit 3df4ebeaac

View File

@ -770,7 +770,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__)