summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgbert Eich <eich@freedesktop.org>2004-09-15 09:05:22 +0000
committerEgbert Eich <eich@freedesktop.org>2004-09-15 09:05:22 +0000
commit2e02a95dcc43dd3ec7bbaf4675ffb94f5074f543 (patch)
tree3d0c6b0c66c965dacbe5690ecb9b63769a353068
parent2d3afb68a104a80a21ee622b9abb9c95e83505d3 (diff)
downloadxorg-lib-libX11-2e02a95dcc43dd3ec7bbaf4675ffb94f5074f543.tar.gz
Unregistering events in XSelectInput() when unregistering IM filter callbacks may be a bad idea as others may be interested in this event. Removed the call to XSelectInput() altogether as we are in root window anyway (Lubos Lunak).
Fix size of a variable that gets assigned the value of SmartScheduleTime (long) to long. This should help to prevent smart scheduler lockup on 64 bit systems due to overruns (Andreas Schwab).
-rw-r--r--modules/im/ximcp/imInsClbk.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/im/ximcp/imInsClbk.c b/modules/im/ximcp/imInsClbk.c
index 3d647953..0aaba735 100644
--- a/modules/im/ximcp/imInsClbk.c
+++ b/modules/im/ximcp/imInsClbk.c
@@ -254,8 +254,18 @@ _XimUnRegisterIMInstantiateCallback(
_XUnregisterFilter( display, RootWindow(display, 0),
_XimFilterPropertyNotify,
(XPointer)NULL );
+#if 0
+ /*
+ * don't unregister the event mask
+ * (not even the PropertyNotify mask)
+ * as others may be interested.
+ * It shouldn't matter if we don't unregister
+ * as we are in the root window anyway so the
+ * event won't be propagated any further.
+ */
XSelectInput( display, RootWindow(display, 0),
NoEventMask );
+#endif
}
else
picb->next = icb->next;