mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-05 06:31:54 -07:00
generalized signature of updateLayoutsBy
This commit is contained in:
@@ -456,7 +456,8 @@ filterMessageWithNoRefresh p a = updateLayoutsBy $ \ wrk ->
|
|||||||
else pure Nothing
|
else pure Nothing
|
||||||
|
|
||||||
-- | Update the layouts of some workspaces.
|
-- | Update the layouts of some workspaces.
|
||||||
updateLayoutsBy :: (WindowSpace -> X (Maybe (Layout Window))) -> X ()
|
updateLayoutsBy :: MonadState XState m
|
||||||
|
=> (WindowSpace -> m (Maybe (Layout Window))) -> m ()
|
||||||
updateLayoutsBy f = runOnWorkspaces' $ \ wrk ->
|
updateLayoutsBy f = runOnWorkspaces' $ \ wrk ->
|
||||||
maybe wrk (\ l' -> wrk{ W.layout = l' }) <$> f wrk
|
maybe wrk (\ l' -> wrk{ W.layout = l' }) <$> f wrk
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user