diff options
| author | Po Lu | 2021-12-24 09:55:15 +0800 |
|---|---|---|
| committer | Po Lu | 2021-12-24 09:55:15 +0800 |
| commit | 8c99628a716f57eef2c181e30075ff136e76a908 (patch) | |
| tree | 10ae0c8ae5f429084de26cf88a0152ceb97438af /src | |
| parent | 20647467bef593c9dd3b86efdc6f21ddfd1e7f75 (diff) | |
| download | emacs-8c99628a716f57eef2c181e30075ff136e76a908.tar.gz emacs-8c99628a716f57eef2c181e30075ff136e76a908.zip | |
Fix some more incorrect valuator clearing
* src/xterm.c (handle_one_xevent): Improve detection of stray
ungrab events.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index c5f826433f1..b8cf637f436 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -10015,7 +10015,11 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 10015 | been changed elsewhere. */ | 10015 | been changed elsewhere. */ |
| 10016 | if (enter->detail != XINotifyInferior | 10016 | if (enter->detail != XINotifyInferior |
| 10017 | && enter->mode != XINotifyPassiveUngrab | 10017 | && enter->mode != XINotifyPassiveUngrab |
| 10018 | && enter->mode != XINotifyUngrab && any) | 10018 | /* See the comment under FocusIn in |
| 10019 | `x_detect_focus_change'. The main relevant culprit | ||
| 10020 | these days seems to be XFCE. */ | ||
| 10021 | && enter->mode != XINotifyUngrab | ||
| 10022 | && any && enter->event == FRAME_X_WINDOW (any)) | ||
| 10019 | xi_reset_scroll_valuators_for_device_id (dpyinfo, enter->deviceid); | 10023 | xi_reset_scroll_valuators_for_device_id (dpyinfo, enter->deviceid); |
| 10020 | 10024 | ||
| 10021 | f = any; | 10025 | f = any; |