[xmonad] tabbed, floating & focus

Konstantin Sobolev konstantin.sobolev at gmail.com
Wed Jun 10 14:24:12 EDT 2009


Hi

On Sat, May 30, 2009 at 10:32 PM, Adam Vogt<vogt.adam at gmail.com> wrote:
>>In the other words you can't switch tabs after you've added a floating
>>window: as soon as floating gets focus again, tabbed restores it's
>>state as it was before the floating window was added.
>>It's quite annoying and I'd like to fix it, but X.L.Decoration logic
>>is too complicated to me. Or maybe I should look at some other place?
>
> This affects all layouts as far as I can tell. I suspect it has something
> to do with this defect:
> http://code.google.com/p/xmonad/issues/detail?id=4

OK, attached is a hack from my xmonad.hs

The idea is very dumb: I essentially intercept runLayout and memorize
last focused window w from passed Stack such that w ==
current->workspace->stack->focus ,i.e. if a window actually having
focus is the one focused in Stack. Then as soon as focused window is
floating I change Stack's focus (back) to w.

Seems to work for me: tabbed no longer switches tabs by itself when
there're floating windows around.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixfocus.hs
Type: text/x-haskell
Size: 1688 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/xmonad/attachments/20090610/fdb4eb5e/fixfocus.bin


More information about the xmonad mailing list