summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-04-18 21:11:46 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-04-18 21:11:46 +0200
commitb0785998338eb49879da93ceca635ef5030a0cab (patch)
treeb8dfd8e17fd3bf7405d6aa91726bcbc87dcc8131
parent1e80207876a365ad930df321153b6c98a4747707 (diff)
set border at manage time
-rw-r--r--client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/client.c b/client.c
index caef85c..e9ea4c7 100644
--- a/client.c
+++ b/client.c
@@ -185,7 +185,6 @@ manage(Window w, XWindowAttributes *wa) {
c->y = wa->y;
c->w = wa->width;
c->h = wa->height;
- c->border = wa->border_width;
if(c->w == sw && c->h == sh) {
c->x = sx;
c->y = sy;
@@ -204,7 +203,7 @@ manage(Window w, XWindowAttributes *wa) {
XSelectInput(dpy, w,
StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
grabbuttons(c, False);
- wc.border_width = BORDERPX;
+ c->border = wc.border_width = BORDERPX;
XConfigureWindow(dpy, w, CWBorderWidth, &wc);
XSetWindowBorder(dpy, w, dc.norm[ColBorder]);
configure(c); /* propagates border_width, if size doesn't change */