mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 20:21:51 -07:00
beautify description code for empty modifier-description.
This commit is contained in:
@@ -58,8 +58,8 @@ instance (LayoutModifier m a, LayoutClass l a) => LayoutClass (ModifiedLayout m
|
|||||||
return $ case mm' of
|
return $ case mm' of
|
||||||
Just m' -> Just $ (ModifiedLayout m') $ maybe l id ml'
|
Just m' -> Just $ (ModifiedLayout m') $ maybe l id ml'
|
||||||
Nothing -> (ModifiedLayout m) `fmap` ml'
|
Nothing -> (ModifiedLayout m) `fmap` ml'
|
||||||
description (ModifiedLayout m l) = modDesc ++ sep ++ description l
|
description (ModifiedLayout m l) = modifierDescription m <> description l
|
||||||
where modDesc = modifierDescription m
|
where "" <> x = x
|
||||||
sep = if modDesc == "" then "" else " "
|
x <> y = x ++ " " ++ y
|
||||||
|
|
||||||
data ModifiedLayout m l a = ModifiedLayout (m a) (l a) deriving ( Read, Show )
|
data ModifiedLayout m l a = ModifiedLayout (m a) (l a) deriving ( Read, Show )
|
||||||
|
Reference in New Issue
Block a user