<div dir="ltr">On Sat, Nov 12, 2011 at 08:43, Ramon Diaz-Uriarte <span dir="ltr">&lt;<a href="mailto:rdiaz02@gmail.com">rdiaz02@gmail.com</a>&gt;</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&#39;ve ended up using Daniel&#39;s one because it seemed more similar to what I<br>
was thinking. I only changed the order of &quot;yes\nno\n&quot;, to make the default<br>
be &quot;no&quot; since I very, very rarely exit xmonad (on purpose).<br></blockquote><div><br></div><div>Daniel&#39;s solution has the potential for problems, because xmonad&#39;s main loop isn&#39;t processing events while it&#39;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>