summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-04-19 08:53:40 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-04-19 08:53:40 +0200
commitad2508f9578195e703033df3cceb441f716261bd (patch)
tree75d4a8b666152fef593941bd8b36adc8b80bfa6e
parentb0785998338eb49879da93ceca635ef5030a0cab (diff)
touch border
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index e9ea4c7c..e267b631 100644
--- a/client.c
+++ b/client.c
@@ -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 */