changing order of c->border restorage
Anselm R. Garbe arg@suckless.org
Fri, 13 Apr 2007 12:22:00 +0200
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
event.c
→
event.c
@@ -174,6 +174,8 @@ XWindowChanges wc;
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 @@ if(isvisible(c))
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;