Ignore resetting devices upon some events we don't have to handle
* src/xterm.c (handle_one_xevent): Ignore SlaveSwitch DeviceChanged events.
This commit is contained in:
parent
18dac47255
commit
ee025b7f0c
1 changed files with 7 additions and 0 deletions
|
@ -11167,6 +11167,13 @@ handle_one_xevent (struct x_display_info *dpyinfo,
|
|||
case XI_PropertyEvent:
|
||||
case XI_HierarchyChanged:
|
||||
case XI_DeviceChanged:
|
||||
|
||||
#ifdef XISlaveSwitch
|
||||
if (xi_event->evtype == XI_DeviceChanged
|
||||
&& (((XIDeviceChangedEvent *) xi_event)->reason
|
||||
== XISlaveSwitch))
|
||||
goto XI_OTHER;
|
||||
#endif
|
||||
x_init_master_valuators (dpyinfo);
|
||||
goto XI_OTHER;
|
||||
#ifdef XI_TouchBegin
|
||||
|
|
Loading…
Add table
Reference in a new issue