projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18dac47
)
Ignore resetting devices upon some events we don't have to handle
author
Po Lu
<luangruo@yahoo.com>
Wed, 12 Jan 2022 01:28:48 +0000
(09:28 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Wed, 12 Jan 2022 01:28:48 +0000
(09:28 +0800)
* src/xterm.c (handle_one_xevent): Ignore SlaveSwitch
DeviceChanged events.
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index 5271589270349308365939d51176f109bd80de9a..af0c5c0bfdef52534d520f34f5eb8e0fad364eb1 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-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