strip non-modifier masks from the keyboard state for keyreleases when xkb is present too
This commit is contained in:
parent
ea07bf7131
commit
bed3cb7a30
1 changed files with 2 additions and 1 deletions
|
@ -270,7 +270,8 @@ static void event_hack_mods(XEvent *e)
|
|||
magic. Our X core protocol stuff won't work, so we use this to
|
||||
find what the modifier state is instead. */
|
||||
if (XkbGetState(ob_display, XkbUseCoreKbd, &xkb_state) == Success)
|
||||
e->xkey.state = xkb_state.compat_state;
|
||||
e->xkey.state =
|
||||
modkeys_only_modifier_masks(xkb_state.compat_state);
|
||||
else
|
||||
#endif
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue