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:
parent
3b1164de0e
commit
2ab73286b7
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue