mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-11 02:02:11 -07:00
fix border drawing
This commit is contained in:
@@ -858,7 +858,9 @@ drawWin = do
|
|||||||
st <- get
|
st <- get
|
||||||
let (c,(d,(w,gc))) = (config &&& dpy &&& win &&& gcon) st
|
let (c,(d,(w,gc))) = (config &&& dpy &&& win &&& gcon) st
|
||||||
scr = defaultScreenOfDisplay d
|
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
|
ht = height c
|
||||||
bw = promptBorderWidth c
|
bw = promptBorderWidth c
|
||||||
Just bgcolor <- io $ initColor d (bgColor c)
|
Just bgcolor <- io $ initColor d (bgColor c)
|
||||||
|
Reference in New Issue
Block a user