diff options
| author | Po Lu | 2021-11-24 09:09:45 +0800 |
|---|---|---|
| committer | Po Lu | 2021-11-24 09:09:45 +0800 |
| commit | f90176b1ca8440adcbcfa61ce0da35d967b9cd6f (patch) | |
| tree | a94ad2068644c879d6beaa4d5909ec75fa98467d /src | |
| parent | 88637c341510e92bb6213418628e2ce84332450a (diff) | |
| download | emacs-f90176b1ca8440adcbcfa61ce0da35d967b9cd6f.tar.gz 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.
Diffstat (limited to 'src')
| -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, | |||
| 10149 | bv.x = lrint (xev->event_x); | 10149 | bv.x = lrint (xev->event_x); |
| 10150 | bv.y = lrint (xev->event_y); | 10150 | bv.y = lrint (xev->event_y); |
| 10151 | bv.window = xev->event; | 10151 | bv.window = xev->event; |
| 10152 | bv.state = xev->mods.base | 10152 | bv.state = xev->mods.effective; |
| 10153 | | xev->mods.effective | ||
| 10154 | | xev->mods.latched | ||
| 10155 | | xev->mods.locked; | ||
| 10156 | bv.time = xev->time; | 10153 | bv.time = xev->time; |
| 10157 | 10154 | ||
| 10158 | memset (&compose_status, 0, sizeof (compose_status)); | 10155 | memset (&compose_status, 0, sizeof (compose_status)); |