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.
This commit is contained in:
Camilla Löwy 2020-05-19 17:49:02 +02:00
parent cf3a03a85d
commit e07925c404

View File

@ -809,7 +809,8 @@ static GLFWbool initExtensions(void)
if (XkbGetState(_glfw.x11.display, XkbUseCoreKbd, &state) == Success) if (XkbGetState(_glfw.x11.display, XkbUseCoreKbd, &state) == Success)
_glfw.x11.xkb.group = (unsigned int)state.group; _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__) #if defined(__CYGWIN__)