summaryrefslogtreecommitdiffstats
path: root/Operations.hs
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-05-04 01:56:32 +0200
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-05-04 01:56:32 +0200
commit8e7faaa30f9bac4a39f1e9db5accef99f3a091cb (patch)
tree4e4ab00d6f9fe74081cd17c38de1cc876894a630 /Operations.hs
parentae121c5227f8eb08bad8678f5e025b7e7ff334b4 (diff)
downloadmetatile-8e7faaa30f9bac4a39f1e9db5accef99f3a091cb.tar
metatile-8e7faaa30f9bac4a39f1e9db5accef99f3a091cb.zip
Fix layout switching order
darcs-hash:20070503235632-a5988-98863d7067876591bd9da2b33d062bfe2c5b42fd
Diffstat (limited to 'Operations.hs')
-rw-r--r--Operations.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Operations.hs b/Operations.hs
index 8df287d..c1aa876 100644
--- a/Operations.hs
+++ b/Operations.hs
@@ -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 )