From: Po Lu Date: Thu, 6 Jan 2022 07:50:52 +0000 (+0800) Subject: Add group to xkey state before filtering it on XI_KeyRelease X-Git-Tag: emacs-29.0.90~3234 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2ab73286b7a58eb983da21bca8b781ec884eb996;p=emacs.git 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. --- diff --git a/src/xterm.c b/src/xterm.c index ad6652fb33c..ff6c71283ec 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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;