projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb2a989
)
Use only effective modifiers for XI2 key press events
author
Po Lu
<luangruo@yahoo.com>
Mon, 22 Nov 2021 01:34:39 +0000
(09:34 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Mon, 22 Nov 2021 01:34:39 +0000
(09:34 +0800)
* src/xterm.c (handle_one_xevent): Use only effective modifiers
in XI_KeyPress events.
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index f5459afd4ffbead5c316f1ffda9374325fb994f6..7c2276f2e6c9571a3ee9a5df300740ac5f2b6126 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-10292,10
+10292,7
@@
handle_one_xevent (struct x_display_info *dpyinfo,
}
case XI_KeyPress:
{
- int state = xev->mods.base
- | xev->mods.effective
- | xev->mods.latched
- | xev->mods.locked;
+ int state = xev->mods.effective;
Lisp_Object c;
#ifdef HAVE_XKB
unsigned int mods_rtrn;