mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
remove reundant ReleaseResources handling
This commit is contained in:
parent
dd5a36cc08
commit
f429843b66
@ -55,9 +55,6 @@ instance (LayoutClass l1 Window, LayoutClass l2 Window) => LayoutClass (IfMax l1
|
||||
|
||||
runLayout (W.Workspace _ (IfMax n l1 l2) s) rect = withWindowSet $ \ws -> arrange (W.integrate' s) (M.keys . W.floating $ ws)
|
||||
where
|
||||
arrange [] _ = do l1' <- maybe l1 id `fmap` handleMessage l1 (SomeMessage ReleaseResources)
|
||||
l2' <- maybe l2 id `fmap` handleMessage l2 (SomeMessage ReleaseResources)
|
||||
return ([], Just $ IfMax n l1' l2')
|
||||
arrange ws fw | length (ws L.\\ fw) <= n = do
|
||||
(wrs, ml1') <- runLayout (W.Workspace "" l1 s) rect
|
||||
let l1' = fromMaybe l1 ml1'
|
||||
|
Loading…
x
Reference in New Issue
Block a user