Change semantics of 'promote'.

Previously 'promote' would move the currently focused window into the
master position in tiled mode. This was *almost* a cycle of the windows,
but not quite (depending on where the focus was, it was in fact a
cycle).

Now we do the obvious generalisation, and just cycle the current window
stack. Simpler to understand, simpler to reason about.
This commit is contained in:
Don Stewart
2007-04-11 07:34:56 +00:00
parent 3e7b23030c
commit e9597b4899
3 changed files with 19 additions and 14 deletions

View File

@@ -123,7 +123,7 @@ keys = M.fromList $
, ((modMask .|. shiftMask, xK_q ), io $ exitWith ExitSuccess)
, ((modMask .|. shiftMask .|. controlMask, xK_q ), io restart)
-- Move focused window into master position in tiling mode.
-- Cycle the current tiling order
, ((modMask, xK_Return), promote)
] ++