Commit 2e02a95d authored by Egbert Eich's avatar Egbert Eich

Unregistering events in XSelectInput() when unregistering IM filter callbacks...

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).
parent 2d3afb68
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment