mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 19:42:00 +00:00
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:
parent
cf3a03a85d
commit
e07925c404
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user