mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-05 14:41:56 -07:00
fix bug where ReleaseResources wasn't getting sent to all layouts.
This commit is contained in:
@@ -357,6 +357,10 @@ instance ReadableSomeLayout a => Layout LayoutSelection a where
|
|||||||
| Just NextLayout <- fromMessage m = switchl rls
|
| Just NextLayout <- fromMessage m = switchl rls
|
||||||
| Just PrevLayout <- fromMessage m = switchl rls'
|
| Just PrevLayout <- fromMessage m = switchl rls'
|
||||||
| Just (JumpToLayout x) <- fromMessage m = switchl (j x)
|
| Just (JumpToLayout x) <- fromMessage m = switchl (j x)
|
||||||
|
| Just ReleaseResources <- fromMessage m =
|
||||||
|
do mlls' <- mapM (\ll -> handleMessage ll m) (l:ls)
|
||||||
|
let lls' = zipWith (\x mx -> maybe x id mx) (l:ls) mlls'
|
||||||
|
return $ Just $ LayoutSelection lls'
|
||||||
where rls (x:xs) = xs ++ [x]
|
where rls (x:xs) = xs ++ [x]
|
||||||
rls [] = []
|
rls [] = []
|
||||||
rls' = reverse . rls . reverse
|
rls' = reverse . rls . reverse
|
||||||
|
Reference in New Issue
Block a user