diff options
| author | Po Lu | 2021-12-21 09:41:40 +0800 |
|---|---|---|
| committer | Po Lu | 2021-12-21 09:41:40 +0800 |
| commit | 2bcd299431495e2107df16febf9b207c75fb29fd (patch) | |
| tree | 0e4eb9fbf42e55168395ec59d3a637837bb1230b /src | |
| parent | aa1fdb3f6fe08169143a3062ca257be487713531 (diff) | |
| download | emacs-2bcd299431495e2107df16febf9b207c75fb29fd.tar.gz emacs-2bcd299431495e2107df16febf9b207c75fb29fd.zip | |
Ignore all emulated button events (i.e. those from touchscreens)
* src/xterm.c (handle_one_xevent): Ignore all XIPointerEmulated
events if the display supports XI 2.2 or later.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index 7456b3b6beb..47539fdef5d 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -10329,9 +10329,10 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 10329 | #ifdef XIPointerEmulated | 10329 | #ifdef XIPointerEmulated |
| 10330 | /* Ignore emulated scroll events when XI2 native | 10330 | /* Ignore emulated scroll events when XI2 native |
| 10331 | scroll events are present. */ | 10331 | scroll events are present. */ |
| 10332 | if (dpyinfo->xi2_version >= 1 | 10332 | if (((dpyinfo->xi2_version == 1 |
| 10333 | && xev->detail >= 4 | 10333 | && xev->detail >= 4 |
| 10334 | && xev->detail <= 8 | 10334 | && xev->detail <= 8) |
| 10335 | || (dpyinfo->xi2_version >= 2)) | ||
| 10335 | && xev->flags & XIPointerEmulated) | 10336 | && xev->flags & XIPointerEmulated) |
| 10336 | { | 10337 | { |
| 10337 | *finish = X_EVENT_DROP; | 10338 | *finish = X_EVENT_DROP; |