[xmonad] insertPosition and transient floating windows

Peter Jones mlists at pmade.com
Wed Nov 4 17:16:27 UTC 2015


I love that insertPosition can keep new windows from going into the
master area, but there's one small annoyance w.r.t. transient floating
windows.

I'm using `insertPosition Below Newer` with `composeOne`.  When a
password dialog appears, and the master window previously had the focus,
the dialog gets focused and is put in the center of the screen.  That
part is perfect.

The problem comes when I dismiss the dialog.  At that point I would
expect the master window to regain focus, but one of the slave windows
does instead.  Of course, removing `insertPosition` fixes my issue.

This is what I have in my configuration in an attempt to avoid this
issue:

    composeOne
      [ pure True  -?> insertPosition Below Newer
      , isFloating -?> doCenterFloat
      ]

`isFloating` comes from XMonad.Hooks.FadeWindows and I have it in there
hoping to *not* apply `insertPosition` when the current window is
already floating.

Any suggestions?

-- 
Peter Jones, Founder, Devalot.com
Defending the honor of good code



More information about the xmonad mailing list