From 52bbce6a3e6de7cde3f5246d64867f8ba446c647 Mon Sep 17 00:00:00 2001 From: Don Stewart Date: Thu, 19 Apr 2007 00:42:36 +0200 Subject: 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 --- Operations.hs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Operations.hs') 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 -- cgit v1.2.3