Add group to xkey state before filtering it on XI_KeyRelease

* src/xterm.c (handle_one_xevent): Add group to xkey.state
before filtering an XI2 key release event.  This fixes fcitx on
some systems.
This commit is contained in:
Po Lu 2022-01-06 15:50:52 +08:00
parent 3b1164de0e
commit 2ab73286b7

View file

@ -10998,7 +10998,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
xkey.root = xev->root;
xkey.subwindow = xev->child;
xkey.time = xev->time;
xkey.state = xev->mods.effective;
xkey.state = ((xev->mods.effective & ~(1 << 13 | 1 << 14))
| (xev->group.effective << 13));
xkey.keycode = xev->detail;
xkey.same_screen = True;