create default modifyLayout that ignores messages.

This commit is contained in:
David Roundy
2007-09-23 11:52:19 +00:00
parent 1c603ebc4b
commit 4a7ec374d0
2 changed files with 1 additions and 1 deletions

View File

@@ -152,6 +152,7 @@ readLayout ls s = concatMap rl ls
class (Show (layout a), Read (layout a)) => Layout layout a where
doLayout :: layout a -> Rectangle -> Stack a -> X ([(a, Rectangle)], Maybe (layout a))
modifyLayout :: layout a -> SomeMessage -> X (Maybe (layout a))
modifyLayout _ _ = return Nothing
runLayout :: Layout l a => l a -> Rectangle -> StackOrNot a -> X ([(a, Rectangle)], Maybe (l a))
runLayout l r = maybe (return ([], Nothing)) (doLayout l r)