mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
NoBorders.hs: remove modifierDescription definitions, so NoBorders and SmartBorder don't change the layout description.
This commit is contained in:
parent
6cd8425c76
commit
e0dfb3428d
@ -53,9 +53,6 @@ import Data.List ((\\))
|
|||||||
data WithBorder a = WithBorder Dimension [a] deriving ( Read, Show )
|
data WithBorder a = WithBorder Dimension [a] deriving ( Read, Show )
|
||||||
|
|
||||||
instance LayoutModifier WithBorder Window where
|
instance LayoutModifier WithBorder Window where
|
||||||
modifierDescription (WithBorder 0 _) = "NoBorders"
|
|
||||||
modifierDescription (WithBorder n _) = "Borders " ++ show n
|
|
||||||
|
|
||||||
unhook (WithBorder _ s) = asks (borderWidth . config) >>= setBorders s
|
unhook (WithBorder _ s) = asks (borderWidth . config) >>= setBorders s
|
||||||
|
|
||||||
redoLayout (WithBorder n s) _ _ wrs = do
|
redoLayout (WithBorder n s) _ _ wrs = do
|
||||||
@ -77,8 +74,6 @@ setBorders ws bw = withDisplay $ \d -> mapM_ (\w -> io $ setWindowBorderWidth d
|
|||||||
data SmartBorder a = SmartBorder [a] deriving (Read, Show)
|
data SmartBorder a = SmartBorder [a] deriving (Read, Show)
|
||||||
|
|
||||||
instance LayoutModifier SmartBorder Window where
|
instance LayoutModifier SmartBorder Window where
|
||||||
modifierDescription _ = "SmartBorder"
|
|
||||||
|
|
||||||
unhook (SmartBorder s) = asks (borderWidth . config) >>= setBorders s
|
unhook (SmartBorder s) = asks (borderWidth . config) >>= setBorders s
|
||||||
|
|
||||||
redoLayout (SmartBorder s) _ _ wrs = do
|
redoLayout (SmartBorder s) _ _ wrs = do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user