setLayout should not call sendMessage, because sendMessage calls windows

This commit is contained in:
Spencer Janssen
2007-09-28 01:15:10 +00:00
parent 4fd7353d8e
commit 34bbbf59c4

View File

@@ -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