Use more precise test for emulated wheel events in XI2
* src/xterm.c (handle_one_xevent): Ignore button events that have XIPointerEmulated set.
This commit is contained in:
parent
9324efac48
commit
5fcff0d2cb
1 changed files with 6 additions and 2 deletions
|
@ -10128,11 +10128,15 @@ handle_one_xevent (struct x_display_info *dpyinfo,
|
|||
bool tool_bar_p = false;
|
||||
struct xi_device_t *device;
|
||||
|
||||
#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
|
||||
&& xev->flags & XIPointerEmulated)
|
||||
goto XI_OTHER;
|
||||
#endif
|
||||
|
||||
device = xi_device_from_id (dpyinfo, xev->deviceid);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue