summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-11-01 16:11:47 +0100
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-11-01 16:11:47 +0100
commit58f44a028428a30b3b6cc8e32039b48b9066841a (patch)
treebd01b245787afa97716a4ddcc2274ead3ac561aa
parenta77caec191c4ce7598b206a5e8561fad6ca112f5 (diff)
downloadmetatile-58f44a028428a30b3b6cc8e32039b48b9066841a.tar
metatile-58f44a028428a30b3b6cc8e32039b48b9066841a.zip
Layouts.Choose: send Hide to non-selected layout
darcs-hash:20071101151147-a5988-14eecf4fa49aa479c20fde452c9692e3d5ff3fb1
-rw-r--r--Layouts.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Layouts.hs b/Layouts.hs
index 7952dc1..2d9facf 100644
--- a/Layouts.hs
+++ b/Layouts.hs
@@ -59,7 +59,8 @@ instance (LayoutClass l a, LayoutClass r a) => LayoutClass (Choose l r) a where
handleMessage lr m | Just FirstLayout <- fromMessage m = case lr of
SLeft {} -> return Nothing
- SRight l r -> fmap (Just . flip SLeft l . fromMaybe r) $ handleMessage r m
+ SRight l r -> fmap (Just . flip SLeft l . fromMaybe r)
+ $ handleMessage r (SomeMessage Hide)
handleMessage lr m | Just NextLayout <- fromMessage m = do
mlr <- handleMessage lr $ SomeMessage NextNoWrap