Fix layout switching order

This commit is contained in:
Spencer Janssen
2007-05-03 23:56:32 +00:00
parent 9d3d2f8503
commit a5e0e2458d

View File

@@ -97,8 +97,7 @@ flipRect (Rectangle rx ry rw rh) = (Rectangle ry rx rh rw)
-- switching back , the focused window is uppermost.
--
switchLayout :: X ()
switchLayout = layout rotateList where rotateList [] = []
rotateList xs = last xs : init xs
switchLayout = layout (\(x:xs) -> xs ++ [x])
data ShrinkOrExpand = Shrink | Expand deriving ( Typeable, Eq )