JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
continued with man page
[dwm.git] / client.c
index b2318ab..e9075a2 100644 (file)
--- a/client.c
+++ b/client.c
@@ -398,7 +398,6 @@ manage(Window w, XWindowAttributes *wa)
        c->next = *l; /* *l == nil */
        *l = c;
 
-       XSetWindowBorderWidth(dpy, c->win, 1);
        XMapRaised(dpy, c->win);
        XMapRaised(dpy, c->title);
        XGrabButton(dpy, Button1, Mod1Mask, c->win, False, ButtonPressMask,
@@ -495,6 +494,7 @@ resize(Client *c, Bool inc)
        if(c->maxh && c->h > c->maxh)
                c->h = c->maxh;
        resize_title(c);
+       XSetWindowBorderWidth(dpy, c->win, 1);
        XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
        e.type = ConfigureNotify;
        e.event = c->win;