diff options
| author | Po Lu | 2021-12-17 19:04:03 +0800 |
|---|---|---|
| committer | Po Lu | 2021-12-17 19:04:03 +0800 |
| commit | 75e6c169ae93bd403bd31bafae6c5a81e2a42ccf (patch) | |
| tree | 5eb36781aeba99a255383d8731a0109a33118c6e /src | |
| parent | 36d873bf0d3f1185d0090e4b506a6a726476aec6 (diff) | |
| download | emacs-75e6c169ae93bd403bd31bafae6c5a81e2a42ccf.tar.gz emacs-75e6c169ae93bd403bd31bafae6c5a81e2a42ccf.zip | |
Ignore motion events sent by an emulated pointer
* src/xterm.c (handle_one_xevent): Ignore XI_Motion events that
have PointerEmulated set when the display supports XInput 2.2
or later.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index fa60a4e8745..6f93956e7d9 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -10074,6 +10074,12 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 10074 | if (!device || !device->master_p) | 10074 | if (!device || !device->master_p) |
| 10075 | goto XI_OTHER; | 10075 | goto XI_OTHER; |
| 10076 | 10076 | ||
| 10077 | #ifdef XI_TouchBegin | ||
| 10078 | if (xev->flags & XIPointerEmulated | ||
| 10079 | && dpyinfo->xi2_version >= 2) | ||
| 10080 | goto XI_OTHER; | ||
| 10081 | #endif | ||
| 10082 | |||
| 10077 | x_display_set_last_user_time (dpyinfo, xi_event->time); | 10083 | x_display_set_last_user_time (dpyinfo, xi_event->time); |
| 10078 | 10084 | ||
| 10079 | #ifdef HAVE_XWIDGETS | 10085 | #ifdef HAVE_XWIDGETS |