mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
bug fix in DwmPromote. whoops.
This commit is contained in:
parent
020ee6fc03
commit
585a01aecf
@ -27,13 +27,13 @@ module XMonadContrib.DwmPromote (dwmpromote) where
|
||||
|
||||
import XMonad
|
||||
import Operations (windows)
|
||||
import StackSet hiding (swap)
|
||||
import qualified Data.Map as M
|
||||
import StackSet
|
||||
|
||||
dwmpromote :: X ()
|
||||
dwmpromote = windows swap
|
||||
|
||||
swap :: StackSet i a s -> StackSet i a s
|
||||
swap = modify Empty $ \c -> case c of
|
||||
Node _ [] [] -> c
|
||||
Node t [] (x:rs) -> Node x [] (t:rs)
|
||||
Node t ls rs -> Node t [] (ys ++ x : rs) where (x:ys) = reverse ls
|
||||
|
Loading…
x
Reference in New Issue
Block a user