[Xmonad] darcs patch: Fix float behaviour, add shiftWin.

Karsten Schoelzel kuser at gmx.de
Mon Sep 10 05:18:07 EDT 2007

On Mon, Sep 10, 2007 at 03:55:30AM +0200, Karsten Schoelzel wrote:
> Mon Sep 10 03:27:38 CEST 2007  Karsten Schoelzel <kuser at gmx.de>
>   * Fix float behaviour, add shiftWin.
>   First, if float is called with window which is on a hidden workspace,
>   then the window will remain on that hidden workspace.
>   Now the focus should change more as expected:
>   float w = (view current) . (shiftWin ws w)
>       where
>           current is the current screen/workspace
>           shiftWin ws w is: - view the workspace w is on
>               - set focus on w
>               - shift ws
>               - set focus back to window it was on that workspace
>                   unless w was focused
>   shiftWin was add to StackSet.hs 

New amended version of the patch attached.

The attached patch should work as described now. Also removes a
workaround in Main.hs for the old buggy float.
And adds QC tests for shiftWin^1^2


*1: bad thing: shiftWin had a bug
*2: good thing: i could find it although i don't have 2 screens, which
                are necessary to trigger the bug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: float-fix.patch
Type: text/x-diff
Size: 4854 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/xmonad/attachments/20070910/72bf3a8e/float-fix.bin

More information about the Xmonad mailing list