[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 75e6c16: Ignore motion events sent by an emulated pointer
From: |
Po Lu |
Subject: |
master 75e6c16: Ignore motion events sent by an emulated pointer |
Date: |
Fri, 17 Dec 2021 06:05:05 -0500 (EST) |
branch: master
commit 75e6c169ae93bd403bd31bafae6c5a81e2a42ccf
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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.
---
src/xterm.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/xterm.c b/src/xterm.c
index fa60a4e..6f93956 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10074,6 +10074,12 @@ handle_one_xevent (struct x_display_info *dpyinfo,
if (!device || !device->master_p)
goto XI_OTHER;
+#ifdef XI_TouchBegin
+ if (xev->flags & XIPointerEmulated
+ && dpyinfo->xi2_version >= 2)
+ goto XI_OTHER;
+#endif
+
x_display_set_last_user_time (dpyinfo, xi_event->time);
#ifdef HAVE_XWIDGETS
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 75e6c16: Ignore motion events sent by an emulated pointer,
Po Lu <=