projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88637c3
)
Use only effective modifiers when handling XI2 button events
author
Po Lu
<luangruo@yahoo.com>
Wed, 24 Nov 2021 01:09:45 +0000
(09:09 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Wed, 24 Nov 2021 01:09:45 +0000
(09:09 +0800)
* src/xterm.c (handle_one_xevent): Use mods.effective when
constructing button events.
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index dfbbff230240e9f192d70e3925ebac74e68ddc96..7e0d58745e210da718dcb478236d5f0898cca338 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-10149,10
+10149,7
@@
handle_one_xevent (struct x_display_info *dpyinfo,
bv.x = lrint (xev->event_x);
bv.y = lrint (xev->event_y);
bv.window = xev->event;
- bv.state = xev->mods.base
- | xev->mods.effective
- | xev->mods.latched
- | xev->mods.locked;
+ bv.state = xev->mods.effective;
bv.time = xev->time;
memset (&compose_status, 0, sizeof (compose_status));