* src/xterm.c (handle_one_xevent): Ignore all XIPointerEmulated
events if the display supports XI 2.2 or later.
#ifdef XIPointerEmulated
/* Ignore emulated scroll events when XI2 native
scroll events are present. */
- if (dpyinfo->xi2_version >= 1
- && xev->detail >= 4
- && xev->detail <= 8
+ if (((dpyinfo->xi2_version == 1
+ && xev->detail >= 4
+ && xev->detail <= 8)
+ || (dpyinfo->xi2_version >= 2))
&& xev->flags & XIPointerEmulated)
{
*finish = X_EVENT_DROP;