summaryrefslogtreecommitdiffstats
path: root/Operations.hs
diff options
context:
space:
mode:
authorDon Stewart <dons@cse.unsw.edu.au>2007-04-19 00:42:36 +0200
committerDon Stewart <dons@cse.unsw.edu.au>2007-04-19 00:42:36 +0200
commit52bbce6a3e6de7cde3f5246d64867f8ba446c647 (patch)
tree958f176ea788830e36b85be7d0bfb429bdf5ea6c /Operations.hs
parent190c9f3be4418e1ba26eef4750b8a123357ba35b (diff)
downloadmetatile-52bbce6a3e6de7cde3f5246d64867f8ba446c647.tar
metatile-52bbce6a3e6de7cde3f5246d64867f8ba446c647.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
Diffstat (limited to 'Operations.hs')
-rw-r--r--Operations.hs5
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