<div dir="ltr"><p dir="ltr">Hi Peter,</p><p>It looks like composeOne picks the first action that matches. So I think you'll get what you describe from:<br></p><p>    composeOne<br>
      [ isFloating -?> doCenterFloat</p><p>      , pure True  -?> insertPosition Below Newer<br>
      ]</p><p><br></p><p>You've given me an idea for a new contrib module: specifying which window gets focus after the last one closes should be done in contrib... sort of the opposite of InsertPosition. I think doing that reliably involves a handleEventHook. I think the event to watch would be ones with the DestroyWindowEvent constructor and nothing relevant turns up when I grep contrib, so it probably hasn't been written yet.</p><p>Regards,</p><p>Adam<br></p><p dir="ltr"></p><div class="gmail_quote">On Nov 4, 2015 12:16 PM, "Peter Jones" <<a href="mailto:mlists@pmade.com" target="_blank">mlists@pmade.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I love that insertPosition can keep new windows from going into the<br>
master area, but there's one small annoyance w.r.t. transient floating<br>
windows.<br>
<br>
I'm using `insertPosition Below Newer` with `composeOne`.  When a<br>
password dialog appears, and the master window previously had the focus,<br>
the dialog gets focused and is put in the center of the screen.  That<br>
part is perfect.<br>
<br>
The problem comes when I dismiss the dialog.  At that point I would<br>
expect the master window to regain focus, but one of the slave windows<br>
does instead.  Of course, removing `insertPosition` fixes my issue.<br>
<br>
This is what I have in my configuration in an attempt to avoid this<br>
issue:<br>
<br>
    composeOne<br>
      [ pure True  -?> insertPosition Below Newer<br>
      , isFloating -?> doCenterFloat<br>
      ]<br>
<br>
`isFloating` comes from XMonad.Hooks.FadeWindows and I have it in there<br>
hoping to *not* apply `insertPosition` when the current window is<br>
already floating.<br>
<br>
Any suggestions?<br>
<br>
--<br>
Peter Jones, Founder, Devalot.com<br>
Defending the honor of good code<br>
<br>
_______________________________________________<br>
xmonad mailing list<br>
<a href="mailto:xmonad@haskell.org" target="_blank">xmonad@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad</a><br>
</blockquote></div>
</div>