mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 20:21:51 -07:00
Tabbed and TabBarDecoration: no need to implement decorateFirst (the default is used)
This commit is contained in:
@@ -65,7 +65,6 @@ data TabBarDecoration a = TabBar XPPosition deriving (Read, Show)
|
||||
|
||||
instance Eq a => DecorationStyle TabBarDecoration a where
|
||||
describeDeco _ = "TabBar"
|
||||
decorateFirst _ = True
|
||||
shrink _ _ r = r
|
||||
decorationMouseDragHook _ _ _ = return ()
|
||||
pureDecoration (TabBar p) _ dht (Rectangle x y wh ht) s _ (w,_) =
|
||||
|
@@ -90,7 +90,6 @@ data TabbedDecoration a = Tabbed deriving (Read, Show)
|
||||
|
||||
instance Eq a => DecorationStyle TabbedDecoration a where
|
||||
describeDeco _ = "Tabbed"
|
||||
decorateFirst _ = True
|
||||
decorationMouseDragHook _ _ _ = return ()
|
||||
pureDecoration _ _ ht _ s wrs (w,r@(Rectangle x y wh _)) =
|
||||
if length wrs' <= 1 then Nothing
|
||||
|
Reference in New Issue
Block a user