[xmonad] Re: Slow reload

Justin Bogner mail at justinbogner.com
Mon Apr 28 01:23:03 EDT 2008

Yitzchak Gale wrote:
> When xmonad needs to recompile xmonad.hs during
> a reload, that can take time. My machine is a little slow,
> and sometimes it can be under load.
> Really weird things can happen In that situation.
> xmonad seems to be in limbo while the compilation
> is happening, before the red border flashes.
> So, for example, let's say I press mod-Q again
> during that time. I'm using KDE, with Windows as my
> xmonad mod key. With xmonad in limbo, KDE gets the key
> press. If the current window happens to be a Konsole,
> for example, that causes the mod key to stop working
> even after the xmonad reload finishes. Very embarrassing!
> Seems to me that xmonad ought to do the following
> on reload:
> 1. Pop up a floater that says "xmonad reloading..."
> 2. Compile the config module in the background.
> Meanwhile, keep catching xmonad key events but
> ignore them.
> 3. When the compilation finishes, dismiss the floater
> and restart with the new config.
> Is this possible?
> Besides key presses, other interesting things can
> happen during a reload. There are probably numerous
> race conditions lurking here.
> Thanks,
> Yitz

Does this happen if any window other than konsole has the focus? It 
doesn't seem to be reproducible in gnome, so it could have to do 
specifcally with konsole, or possibly with QT somehow.
Justin Bogner

More information about the xmonad mailing list