summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2021-11-24 09:09:45 +0800
committerPo Lu <luangruo@yahoo.com>2021-11-24 09:09:45 +0800
commitf90176b1ca8440adcbcfa61ce0da35d967b9cd6f (patch)
treea94ad2068644c879d6beaa4d5909ec75fa98467d
parent88637c341510e92bb6213418628e2ce84332450a (diff)
downloademacs-f90176b1ca8440adcbcfa61ce0da35d967b9cd6f.tar.gz
emacs-f90176b1ca8440adcbcfa61ce0da35d967b9cd6f.tar.bz2
emacs-f90176b1ca8440adcbcfa61ce0da35d967b9cd6f.zip
Use only effective modifiers when handling XI2 button events
* src/xterm.c (handle_one_xevent): Use mods.effective when constructing button 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 dfbbff23024..7e0d58745e2 100644
--- 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));