mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
MultiToggle.hs: improve 'description' implementation in LayoutClass instance to display the current transformed layout rather than just 'MultiToggle'
This commit is contained in:
parent
4026d40730
commit
670d3160c4
@ -81,7 +81,7 @@ import Data.Maybe
|
||||
-- > data NOBORDERS = NOBORDERS deriving (Read, Show, Eq, Typeable)
|
||||
-- > instance Transformer NOBORDERS Window where
|
||||
-- > transform _ x k = k (noBorders x)
|
||||
-- >
|
||||
-- >
|
||||
-- > data FULL = FULL deriving (Read, Show, Eq, Typeable)
|
||||
-- > instance Transformer FULL Window where
|
||||
-- > transform _ x k = k Full
|
||||
@ -189,7 +189,7 @@ acceptChange :: (LayoutClass l' a) => MultiToggle ts l a -> ((l' a -> MultiToggl
|
||||
acceptChange mt f = fmap (f (\x -> mt{ currLayout = EL x }))
|
||||
|
||||
instance (Typeable a, Show ts, HList ts a, LayoutClass l a) => LayoutClass (MultiToggle ts l) a where
|
||||
description _ = "MultiToggle"
|
||||
description (MultiToggle { currLayout = (EL l) }) = description l
|
||||
|
||||
pureLayout mt r s = currLayout mt `unEL` \l -> pureLayout l r s
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user