Make border width configurable

This commit is contained in:
Spencer Janssen
2007-04-30 16:35:15 +00:00
parent 08e514b28f
commit 3586379ecc
3 changed files with 7 additions and 1 deletions

View File

@@ -111,6 +111,10 @@ normalBorderColor, focusedBorderColor :: String
normalBorderColor = "#dddddd"
focusedBorderColor = "#ff0000"
-- Width of the window border in pixels
borderWidth :: Dimension
borderWidth = 1
-- What layout to start in, and what the default proportion for the
-- left pane should be in the tiled layout. See LayoutDesc and
-- friends in XMonad.hs for options.

View File

@@ -1,3 +1,5 @@
module Config where
import XMonad (LayoutDesc)
import Graphics.X11.Xlib.Types (Dimension)
defaultLayoutDesc :: LayoutDesc
borderWidth :: Dimension

View File

@@ -161,7 +161,7 @@ manage w = do
withDisplay $ \d -> io $ do
selectInput d w $ structureNotifyMask .|. enterWindowMask .|. propertyChangeMask
mapWindow d w
setWindowBorderWidth d w 1
setWindowBorderWidth d w borderWidth
windows $ W.push w
-- | unmanage. A window no longer exists, remove it from the window