diff options
author | Don Stewart <dons@cse.unsw.edu.au> | 2007-04-19 00:42:36 +0200 |
---|---|---|
committer | Don Stewart <dons@cse.unsw.edu.au> | 2007-04-19 00:42:36 +0200 |
commit | 548f4bad33b2aaa427f25126a92b12f3ab5268fe (patch) | |
tree | 958f176ea788830e36b85be7d0bfb429bdf5ea6c /Operations.hs | |
parent | de49102401cfcc1d7b0ebee3d61c6a609ce8eb46 (diff) | |
download | xmonad-548f4bad33b2aaa427f25126a92b12f3ab5268fe.tar.gz xmonad-548f4bad33b2aaa427f25126a92b12f3ab5268fe.tar.xz xmonad-548f4bad33b2aaa427f25126a92b12f3ab5268fe.zip |
Promote now swaps focused window with master window
This means other windows are unaffected.
The change from the previous cycling behaviour was felt necessary, since
cycling isn't a terribly useful operation.
Some properties that hold:
focus is unchanged by promotion
promote is idempotent (promoting twice does nothing)
the focused and master window will swap their positions in the stack
darcs-hash:20070418224236-9c5c1-4539f9f397e181f91dc9743e3ffac4b5796c0fac.gz
Diffstat (limited to 'Operations.hs')
-rw-r--r-- | Operations.hs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Operations.hs b/Operations.hs index 418d4ea..0effd8d 100644 --- a/Operations.hs +++ b/Operations.hs @@ -91,9 +91,6 @@ flipRect (Rectangle rx ry rw rh) = (Rectangle ry rx rh rw) -- tiling mode, the currently focused window becomes a master. When -- switching back , the focused window is uppermost. -- --- Note a current `feature' is that 'promote' cycles clockwise in Tall --- mode, and counter clockwise in wide mode. This is a feature. --- switchLayout :: X () switchLayout = layout $ \fl -> fl { layoutType = rotateLayout (layoutType fl) } @@ -224,7 +221,7 @@ setBorder w p = withDisplay $ \d -> io $ setWindowBorder d w p raise :: Ordering -> X () raise = windows . W.rotate --- | promote. Cycle the current tiling order clockwise. +-- | promote. Move the currently focused window into the master frame promote :: X () promote = windows W.promote |