X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=event.c;h=748987e4417a68b0f93e25e021f2f93d9d1efb49;hb=be8d6d40f60b45f941bd9cb6896b83ce223b6406;hp=c41c9751a93f2012a493a6e7f69c478ded51eb7c;hpb=f0c2353393ac97ab759a59a2569f7cac725a3c91;p=dwm.git diff --git a/event.c b/event.c index c41c975..748987e 100644 --- a/event.c +++ b/event.c @@ -174,6 +174,8 @@ configurerequest(XEvent *e) { if((c = getclient(ev->window))) { c->ismax = False; + if(ev->value_mask & CWBorderWidth) + c->border = ev->border_width; if(c->isfixed || c->isfloating || (lt->arrange == floating)) { if(ev->value_mask & CWX) c->x = ev->x; @@ -190,11 +192,9 @@ configurerequest(XEvent *e) { XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); } else { - if(ev->value_mask & CWBorderWidth) - c->border = ev->border_width; configure(c); - c->border = BORDERPX; } + c->border = BORDERPX; } else { wc.x = ev->x;