aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2021-11-22 09:34:39 +0800
committerPo Lu2021-11-22 09:34:39 +0800
commita4ac6090986262f5a01c858a35bdcfb1787ded45 (patch)
treee666c51a21b966bbd8d9ed1a699e7736e4010fe8
parentbb2a989e002c954e67e3112d7bdb2f2891d387bd (diff)
downloademacs-a4ac6090986262f5a01c858a35bdcfb1787ded45.tar.gz
emacs-a4ac6090986262f5a01c858a35bdcfb1787ded45.zip
Use only effective modifiers for XI2 key press events
* src/xterm.c (handle_one_xevent): Use only effective modifiers in XI_KeyPress events.
-rw-r--r--src/xterm.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c
index f5459afd4ff..7c2276f2e6c 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10292,10 +10292,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
10292 } 10292 }
10293 case XI_KeyPress: 10293 case XI_KeyPress:
10294 { 10294 {
10295 int state = xev->mods.base 10295 int state = xev->mods.effective;
10296 | xev->mods.effective
10297 | xev->mods.latched
10298 | xev->mods.locked;
10299 Lisp_Object c; 10296 Lisp_Object c;
10300#ifdef HAVE_XKB 10297#ifdef HAVE_XKB
10301 unsigned int mods_rtrn; 10298 unsigned int mods_rtrn;