summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Roundy <droundy@darcs.net>2007-09-23 13:52:19 +0200
committerDavid Roundy <droundy@darcs.net>2007-09-23 13:52:19 +0200
commit98132d10ac3d2e55343b7051a5a7b82df7c5b22a (patch)
treea1d77ca9df45e581739eed1608996e0219ff2d7f
parent85dc84516e3848ca9d9a268c121220de164d0e9e (diff)
downloadmetatile-98132d10ac3d2e55343b7051a5a7b82df7c5b22a.tar
metatile-98132d10ac3d2e55343b7051a5a7b82df7c5b22a.zip
create default modifyLayout that ignores messages.
darcs-hash:20070923115219-72aca-d4400312d8edb267350518f4cce6acd99abc3e1d
-rw-r--r--Operations.hs1
-rw-r--r--XMonad.hs1
2 files changed, 1 insertions, 1 deletions
diff --git a/Operations.hs b/Operations.hs
index 86f0680..62780a4 100644
--- a/Operations.hs
+++ b/Operations.hs
@@ -381,7 +381,6 @@ instance Message IncMasterN
data Full a = Full deriving ( Show, Read )
instance Layout Full a where
doLayout Full sc (W.Stack f _ _) = return ([(f, sc)], Nothing)
- modifyLayout Full _ = return Nothing -- no changes
--
-- The tiling mode of xmonad, and its operations.
--
diff --git a/XMonad.hs b/XMonad.hs
index 3a6f298..7f5fe77 100644
--- a/XMonad.hs
+++ b/XMonad.hs
@@ -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)