LayoutSelection: describe the active layout only

This commit is contained in:
Spencer Janssen
2007-09-28 05:18:58 +00:00
parent a7c4c38ba8
commit 3b64981c78

View File

@@ -386,6 +386,9 @@ instance ReadableSomeLayout a => Layout LayoutSelection a where
return $ (\l' -> LayoutSelection (l':ls)) `fmap` ml' return $ (\l' -> LayoutSelection (l':ls)) `fmap` ml'
-- Unless there is no layout... -- Unless there is no layout...
handleMessage (LayoutSelection []) _ = return Nothing handleMessage (LayoutSelection []) _ = return Nothing
description (LayoutSelection (x:_)) = description x
description _ = "default"
-- --
-- Builtin layout algorithms: -- Builtin layout algorithms:
-- --