I&#39;ve just tested your hack and it worked, but not very well.<br>When I placed a floating window on a tabbed workspace, changed the focus from floating and tiled alternately, it worked as expected.<br>But when I closed the floating window, the tiled windows just switched as before, which is not a big problem.<br>

The real problem happened when I tried to float a tiled window, xmonad got crazy.<br>xmonad process got a 100% usage on a core and the &#39;screen&#39; were not updated anymore, only the later window had the focus. No way to change the focus or do anything.<br>

Hopefully this window I tried to float were a terminal and was able to kill xmonad and re-run it without kill X or logging ssh.<br>(xmonad --restart didn&#39;t worked)<br><br>Anyway, this switching focus problem is really annoying.<br>

I&#39;m willing to test anymore hacks you build :P<br><br clear="all">Henrique G. Abreu<br>
<br><br><div class="gmail_quote">On Wed, Jun 10, 2009 at 15:24, Konstantin Sobolev <span dir="ltr">&lt;<a href="mailto:konstantin.sobolev@gmail.com">konstantin.sobolev@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi<br>
<div class="im"><br>
On Sat, May 30, 2009 at 10:32 PM, Adam Vogt&lt;<a href="https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=vogt.adam@gmail.com">vogt.adam@gmail.com</a>&gt; wrote:<br>
</div><div class="im">&gt;&gt;In the other words you can&#39;t switch tabs after you&#39;ve added a floating<br>
&gt;&gt;window: as soon as floating gets focus again, tabbed restores it&#39;s<br>
&gt;&gt;state as it was before the floating window was added.<br>
&gt;&gt;It&#39;s quite annoying and I&#39;d like to fix it, but X.L.Decoration logic<br>
&gt;&gt;is too complicated to me. Or maybe I should look at some other place?<br>
&gt;<br>
&gt; This affects all layouts as far as I can tell. I suspect it has something<br>
&gt; to do with this defect:<br>
&gt; <a href="http://code.google.com/p/xmonad/issues/detail?id=4" target="_blank">http://code.google.com/p/xmonad/issues/detail?id=4</a><br>
<br>
</div>OK, attached is a hack from my xmonad.hs<br>
<br>
The idea is very dumb: I essentially intercept runLayout and memorize<br>
last focused window w from passed Stack such that w ==<br>
current-&gt;workspace-&gt;stack-&gt;focus ,i.e. if a window actually having<br>
focus is the one focused in Stack. Then as soon as focused window is<br>
floating I change Stack&#39;s focus (back) to w.<br>
<br>
Seems to work for me: tabbed no longer switches tabs by itself when<br>
there&#39;re floating windows around.<br>
<br>_______________________________________________<br>
xmonad mailing list<br>
<a href="https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=xmonad@haskell.org">xmonad@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/xmonad" target="_blank">http://www.haskell.org/mailman/listinfo/xmonad</a><br>
<br></blockquote></div><br>