mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
cleanup in DwmPromote.
This commit is contained in:
parent
266f5cfc0a
commit
5943b98bf2
@ -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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user