mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-15 20:13:47 -07:00
setLayout should not call sendMessage, because sendMessage calls windows
This commit is contained in:
@@ -329,9 +329,9 @@ instance Message Event
|
|||||||
-- | Set the layout of the currently viewed workspace
|
-- | Set the layout of the currently viewed workspace
|
||||||
setLayout :: SomeLayout Window -> X ()
|
setLayout :: SomeLayout Window -> X ()
|
||||||
setLayout l = do
|
setLayout l = do
|
||||||
sendMessage ReleaseResources
|
ss@(W.StackSet { W.current = c@(W.Screen { W.workspace = ws })}) <- gets windowset
|
||||||
windows $ \ss@(W.StackSet { W.current = c@(W.Screen { W.workspace = ws })})
|
handleMessage (W.layout ws) (SomeMessage ReleaseResources)
|
||||||
-> ss {W.current = c { W.workspace = ws { W.layout = l } } }
|
windows $ const $ ss {W.current = c { W.workspace = ws { W.layout = l } } }
|
||||||
|
|
||||||
-- Layout selection manager
|
-- Layout selection manager
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user