projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24a52df
)
Add effective group to xkey events when handling XI key press events
author
Po Lu
<luangruo@yahoo.com>
Tue, 4 Jan 2022 03:16:46 +0000
(11:16 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Tue, 4 Jan 2022 03:17:59 +0000
(11:17 +0800)
* src/xterm.c (handle_one_xevent): Add effective group to
xkey.state when translating XI key events.
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index 31e39280b36ca51140c3091f3a14a56821a990a6..8202e8fb003eaef6ad342238446d2027f3eb25e4 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-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;