changeset: 864:8e23c227b097
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Thu Apr 19 08:53:40 2007 +0200
summary: touch border
diff -r 53928ed4f36c -r 8e23c227b097 client.c
--- a/client.c Wed Apr 18 21:11:46 2007 +0200
+++ b/client.c Thu Apr 19 08:53:40 2007 +0200
@@ -203,7 +203,7 @@ manage(Window w, XWindowAttributes *wa)
XSelectInput(dpy, w,
StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
grabbuttons(c, False);
- c->border = wc.border_width = BORDERPX;
+ c->border = wc.border_width = (c->w == sw && c->h == sh) ? wa->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 Thu Apr 19 2007 - 08:57:44 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:40 UTC