diff options
author | Po Lu <luangruo@yahoo.com> | 2021-11-24 09:09:45 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2021-11-24 09:09:45 +0800 |
commit | f90176b1ca8440adcbcfa61ce0da35d967b9cd6f (patch) | |
tree | a94ad2068644c879d6beaa4d5909ec75fa98467d | |
parent | 88637c341510e92bb6213418628e2ce84332450a (diff) | |
download | emacs-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.c | 5 |
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)); |