cleanup in DwmPromote.

This commit is contained in:
David Roundy 2007-08-23 15:54:37 +00:00
parent 266f5cfc0a
commit 5943b98bf2

View File

@ -40,10 +40,8 @@ import StackSet
-- %keybind , ((modMask, xK_Return), dwmpromote) -- %keybind , ((modMask, xK_Return), dwmpromote)
dwmpromote :: X () dwmpromote :: X ()
dwmpromote = windows swap dwmpromote = windows $ modify' $
\c -> case c of
swap :: StackSet i a s sd -> StackSet i a s sd Stack _ [] [] -> c
swap = modify' $ \c -> case c of Stack t [] (x:rs) -> Stack x [] (t:rs)
Stack _ [] [] -> c Stack t ls rs -> Stack t [] (ys ++ x : rs) where (x:ys) = reverse ls
Stack t [] (x:rs) -> Stack x [] (t:rs)
Stack t ls rs -> Stack t [] (ys ++ x : rs) where (x:ys) = reverse ls