projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36d873b
)
Ignore motion events sent by an emulated pointer
author
Po Lu
<luangruo@yahoo.com>
Fri, 17 Dec 2021 11:04:03 +0000
(19:04 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Fri, 17 Dec 2021 11:04:03 +0000
(19:04 +0800)
* 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
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index fa60a4e87459c8d7701c0272617a223b1843a26c..6f93956e7d9099fc6c64bb093f0873b478213bac 100644
(file)
--- 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