|
|
@ -1132,6 +1132,10 @@ manage(Window w, XWindowAttributes *wa) |
|
|
|
c->bw = borderpx; |
|
|
|
c->bw = borderpx; |
|
|
|
|
|
|
|
|
|
|
|
wc.border_width = c->bw; |
|
|
|
wc.border_width = c->bw; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(c->x == selmon->wx) c->x += (c->mon->ww - WIDTH(c)) / 2 - c->bw; |
|
|
|
|
|
|
|
if(c->y == selmon->wy) c->y += (c->mon->wh - HEIGHT(c)) / 2 - c->bw; |
|
|
|
|
|
|
|
|
|
|
|
XConfigureWindow(dpy, w, CWBorderWidth, &wc); |
|
|
|
XConfigureWindow(dpy, w, CWBorderWidth, &wc); |
|
|
|
XSetWindowBorder(dpy, w, scheme[SchemeNorm][ColBorder].pixel); |
|
|
|
XSetWindowBorder(dpy, w, scheme[SchemeNorm][ColBorder].pixel); |
|
|
|
configure(c); /* propagates border_width, if size doesn't change */ |
|
|
|
configure(c); /* propagates border_width, if size doesn't change */ |
|
|
|