<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Feb 26, 2015 at 11:24 AM, adam vogt <span dir="ltr"><<a href="mailto:vogt.adam@gmail.com" target="_blank">vogt.adam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":16o" class="a3s" style="overflow:hidden">Finally, do you have an example of something you can do with the<br>
eventGetter that cannot be done with handleEventHook?</div></blockquote></div><br>One thing I've wanted is the ability to hook into GHC's I/O manager instead of polling X11 directly. Currently, other threads will not run until xmonad receives an X11 event, because it's blocked in the FFI instead of the I/O manager monitoring the X11 socket. This also means you can't sensibly wait on both a socket/pipe and X11 events.</div><div class="gmail_extra"><br></div><div class="gmail_extra">(Doing the above right also implies that either we synthesize X11 events for non-X11 events, or add an additional eventHook for them. The latter is probably easier, since the former either needs to "steal" an event type from X11 or a rather nonsensical patch to the X11 bindings to support a non-X11 event as an "X11" event type.)</div><div class="gmail_extra"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>