mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-09 16:31:53 -07:00
add a hook to LayoutHelpers.
This commit is contained in:
@@ -33,7 +33,9 @@ class (Show (m l a), Read (m l a), Layout l a) => LayoutModifier m l a where
|
|||||||
modifyModify _ _ = return Nothing
|
modifyModify _ _ = return Nothing
|
||||||
redoLayout :: m l a -> Rectangle -> Stack a -> [(a, Rectangle)]
|
redoLayout :: m l a -> Rectangle -> Stack a -> [(a, Rectangle)]
|
||||||
-> X ([(a, Rectangle)], Maybe (l a -> m l a))
|
-> X ([(a, Rectangle)], Maybe (l a -> m l a))
|
||||||
redoLayout _ _ _ wrs = return (wrs, Nothing)
|
redoLayout m _ _ wrs = do hook m; return (wrs, Nothing)
|
||||||
|
hook :: m l a -> X ()
|
||||||
|
hook _ = return ()
|
||||||
|
|
||||||
instance LayoutModifier m l a => Layout (m l) a where
|
instance LayoutModifier m l a => Layout (m l) a where
|
||||||
doLayout m r s = do (ws, ml') <- doLayout (extractLayout m) r s
|
doLayout m r s = do (ws, ml') <- doLayout (extractLayout m) r s
|
||||||
|
Reference in New Issue
Block a user