diff --git a/cmd/wm/client.c b/cmd/wm/client.c index e5e0c81a..5f288563 100644 --- a/cmd/wm/client.c +++ b/cmd/wm/client.c @@ -516,7 +516,10 @@ resize_client(Client *c, XRectangle *r, Bool ignore_xcall) match_sizehints(c); if(!ignore_xcall) { - if(!idx_of_area(f->area) && c->rect.width >= rect.width && c->rect.height >= rect.height) { + if(!idx_of_area(f->area) && + (c->rect.width >= rect.width) && + (c->rect.height >= rect.height)) + { f->rect.x = -def.border; f->rect.y = -height_of_bar(); } diff --git a/cmd/wm/event.c b/cmd/wm/event.c index 7667a2af..9d2fdc58 100644 --- a/cmd/wm/event.c +++ b/cmd/wm/event.c @@ -155,8 +155,8 @@ handle_configurerequest(XEvent *e) if(c->frame.size) { Frame *f = c->frame.data[c->sel]; if(c->rect.width >= rect.width && c->rect.height >= rect.height) { - f->rect.x = wc.x = -def.border; f->rect.y = wc.y = -height_of_bar(); + f->rect.x = wc.x = -def.border; } else { f->rect.x = wc.x = c->rect.x - def.border;