mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
make DwmPromote compile again
This commit is contained in:
parent
df7b1116b3
commit
68ecf2071a
@ -36,8 +36,8 @@ dwmpromote = windows promote
|
|||||||
promote :: (Integral i, Ord a) => StackSet i j a -> StackSet i j a
|
promote :: (Integral i, Ord a) => StackSet i j a -> StackSet i j a
|
||||||
promote w = maybe w id $ do
|
promote w = maybe w id $ do
|
||||||
a <- peek w -- fail if null
|
a <- peek w -- fail if null
|
||||||
let stack = index (current w) w
|
stack <- index (current w) w
|
||||||
newstack = swap a (next stack a) stack
|
let newstack = swap a (next stack a) stack
|
||||||
return $ w { stacks = M.adjust (\(f,_) -> (f, newstack)) (current w) (stacks w),
|
return $ w { stacks = M.adjust (\(f,_) -> (f, newstack)) (current w) (stacks w),
|
||||||
focus = M.insert (current w) (head newstack) (focus w) }
|
focus = M.insert (current w) (head newstack) (focus w) }
|
||||||
where
|
where
|
||||||
|
Loading…
x
Reference in New Issue
Block a user