changeset: 863:53928ed4f36c
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Wed Apr 18 21:11:46 2007 +0200
summary: set border at manage time
diff -r b0b95daf853b -r 53928ed4f36c client.c
--- a/client.c Wed Apr 18 17:29:38 2007 +0200
+++ b/client.c Wed Apr 18 21:11:46 2007 +0200
@@ -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 */
Received on Wed Apr 18 2007 - 21:12:21 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:40 UTC