<div dir="ltr">On Sat, Nov 12, 2011 at 08:43, Ramon Diaz-Uriarte <span dir="ltr"><<a href="mailto:rdiaz02@gmail.com">rdiaz02@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks to both Daniel Wagner and Brandon Allbery for their<br>
suggestions.<br>
<br>
I've ended up using Daniel's one because it seemed more similar to what I<br>
was thinking. I only changed the order of "yes\nno\n", to make the default<br>
be "no" since I very, very rarely exit xmonad (on purpose).<br></blockquote><div><br></div><div>Daniel's solution has the potential for problems, because xmonad's main loop isn't processing events while it's running. (This is a common problem with most of the contrib functions that process input; they really need to do their input handling in the handleEventHook instead of opening a new connection to the X server. For those who keep track of such things, the possible failure mode is the same as with the infamous putSelection.)</div>
</div><div><br></div>-- <br>brandon s allbery <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>wandering unix systems administrator (available) (412) 475-9364 vm/sms<br>
<br>
</div>