Add effective group to xkey events when handling XI key press events

* src/xterm.c (handle_one_xevent): Add effective group to
xkey.state when translating XI key events.
This commit is contained in:
Po Lu 2022-01-04 11:16:46 +08:00
parent 24a52df738
commit 6668a7608c

View file

@ -10668,7 +10668,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;