diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-11-01 16:11:47 +0100 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-11-01 16:11:47 +0100 |
commit | 58f44a028428a30b3b6cc8e32039b48b9066841a (patch) | |
tree | bd01b245787afa97716a4ddcc2274ead3ac561aa | |
parent | a77caec191c4ce7598b206a5e8561fad6ca112f5 (diff) | |
download | metatile-58f44a028428a30b3b6cc8e32039b48b9066841a.tar metatile-58f44a028428a30b3b6cc8e32039b48b9066841a.zip |
Layouts.Choose: send Hide to non-selected layout
darcs-hash:20071101151147-a5988-14eecf4fa49aa479c20fde452c9692e3d5ff3fb1
-rw-r--r-- | Layouts.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |