[xmonad] exiting: asking for confirmation (or a four-key combination)

Ramon Diaz-Uriarte rdiaz02 at gmail.com
Sat Nov 12 18:15:48 CET 2011



Thanks. I wasn't at all aware of that. I'll use the solution you suggested
then.


R.


On Sat, 12 Nov 2011 11:47:24 -0500,Brandon Allbery <allbery.b at gmail.com> wrote:
> On Sat, Nov 12, 2011 at 08:43, Ramon Diaz-Uriarte <rdiaz02 at gmail.com> wrote:

> > Thanks to both Daniel Wagner and Brandon Allbery for their
> > suggestions.
> >
> > I've ended up using Daniel's one because it seemed more similar to what I
> > was thinking. I only changed the order of "yes\nno\n", to make the default
> > be "no" since I very, very rarely exit xmonad (on purpose).
> >

> 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.)

> -- 
> brandon s allbery                                      allbery.b at gmail.com
> wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-- 
Ramon Diaz-Uriarte
Department of Biochemistry, Lab B-25.
Facultad de Medicina (UAM)
Arzobispo Morcillo, 4
28029 Madrid
Spain


Phone: +34-91-497-2412

Email: rdiaz02 at gmail.com
       ramon.diaz at iib.uam.es

http://ligarto.org/rdiaz




More information about the xmonad mailing list