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)
|
||||
|
||||
dwmpromote :: X ()
|
||||
dwmpromote = windows swap
|
||||
|
||||
swap :: StackSet i a s sd -> StackSet i a s sd
|
||||
swap = modify' $ \c -> case c of
|
||||
dwmpromote = windows $ modify' $
|
||||
\c -> case c of
|
||||
Stack _ [] [] -> c
|
||||
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