mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 04:31:52 -07:00
fix border drawing
This commit is contained in:
@@ -858,7 +858,9 @@ drawWin = do
|
||||
st <- get
|
||||
let (c,(d,(w,gc))) = (config &&& dpy &&& win &&& gcon) st
|
||||
scr = defaultScreenOfDisplay d
|
||||
wh = widthOfScreen scr
|
||||
wh = case position c of
|
||||
CenteredAt _ wd -> floor $ ((1 - wd) / 2) * fi (widthOfScreen scr)
|
||||
_ -> widthOfScreen scr
|
||||
ht = height c
|
||||
bw = promptBorderWidth c
|
||||
Just bgcolor <- io $ initColor d (bgColor c)
|
||||
|
Reference in New Issue
Block a user