mirror of
https://github.com/xmonad/xmonad.git
synced 2025-07-25 17:21:52 -07:00
generalized signature of updateLayoutsBy
This commit is contained in:
@@ -456,7 +456,8 @@ filterMessageWithNoRefresh p a = updateLayoutsBy $ \ wrk ->
|
||||
else pure Nothing
|
||||
|
||||
-- | 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 ->
|
||||
maybe wrk (\ l' -> wrk{ W.layout = l' }) <$> f wrk
|
||||
|
||||
|
Reference in New Issue
Block a user