Closed AmandaCameron closed 11 years ago
Thanks. Nice work!
Not so nice, there's a problem -- because of the defer to do the unlocking, it'll leak memory, as well as never unlock the thing, so once the XEvent loop stats, no hooks can be registered. -- Sorry!
This is a simple patch that adds hooks to the xevent main loop, allowing handling of messages that don't conform to the package's routing mechanics
Hooks return true to allow the message to be processed as normal, false to abort processing of the event, presumably to implement it all in the hook's callback.
http://amanda.darkdna.net/p/1acba