diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-05-04 01:56:32 +0200 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-05-04 01:56:32 +0200 |
commit | 8e7faaa30f9bac4a39f1e9db5accef99f3a091cb (patch) | |
tree | 4e4ab00d6f9fe74081cd17c38de1cc876894a630 | |
parent | ae121c5227f8eb08bad8678f5e025b7e7ff334b4 (diff) | |
download | metatile-8e7faaa30f9bac4a39f1e9db5accef99f3a091cb.tar metatile-8e7faaa30f9bac4a39f1e9db5accef99f3a091cb.zip |
Fix layout switching order
darcs-hash:20070503235632-a5988-98863d7067876591bd9da2b33d062bfe2c5b42fd
-rw-r--r-- | Operations.hs | 3 |
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 ) |