aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-01-04 11:16:46 +0800
committerPo Lu2022-01-04 11:17:59 +0800
commit6668a7608cac6f09d4adc3282fce9a7c03e56792 (patch)
treea948df4bd947cfd4a8daf942a83596a37c4246e0 /src
parent24a52df738d717472c203e9ac41ffac282c45921 (diff)
downloademacs-6668a7608cac6f09d4adc3282fce9a7c03e56792.tar.gz
emacs-6668a7608cac6f09d4adc3282fce9a7c03e56792.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 31e39280b36..8202e8fb003 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10668,7 +10668,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
10668 xkey.root = xev->root; 10668 xkey.root = xev->root;
10669 xkey.subwindow = xev->child; 10669 xkey.subwindow = xev->child;
10670 xkey.time = xev->time; 10670 xkey.time = xev->time;
10671 xkey.state = xev->mods.effective; 10671 xkey.state = ((xev->mods.effective & ~(1 << 13 | 1 << 14))
10672 | (xev->group.effective << 13));
10672 xkey.keycode = xev->detail; 10673 xkey.keycode = xev->detail;
10673 xkey.same_screen = True; 10674 xkey.same_screen = True;
10674 10675