Be less strict about which PointerEmulated button events to ignore

* src/xterm.c (handle_one_xevent): Ignore all PointerEmulated
button events.
This commit is contained in:
Po Lu 2022-02-12 10:23:51 +08:00
parent f622034fa5
commit 7c37f5fd69

View file

@ -11242,11 +11242,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
#ifdef XIPointerEmulated
/* Ignore emulated scroll events when XI2 native
scroll events are present. */
if (((dpyinfo->xi2_version == 1
&& xev->detail >= 4
&& xev->detail <= 8)
|| (dpyinfo->xi2_version >= 2))
&& xev->flags & XIPointerEmulated)
if (xev->flags & XIPointerEmulated)
{
*finish = X_EVENT_DROP;
goto XI_OTHER;