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.
This commit is contained in:
Po Lu
2021-12-17 19:04:03 +08:00
parent 36d873bf0d
commit 75e6c169ae

View File

@@ -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