mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -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
@ -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