commit 947a15ac98dfd829aeb09fb1b2cb6c107037598e
parent a56081487cace9518c1c682b1628393b2e132f55
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Thu, 27 Apr 2006 21:32:45 +0200
fixed issue reported by rundstutzen (one has to be more hard to those broken apps)
Diffstat:
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/cmd/wm/client.c b/cmd/wm/client.c
@@ -477,9 +477,10 @@ void
resize_client(Client *c, XRectangle *r, Bool ignore_xcall)
{
Frame *f = c->frame.data[c->sel];
+ int fidx = idx_of_frame(f);
f->rect = *r;
- if((f->area->mode != Colstack) || (f->area->sel == idx_of_frame(f)))
+ if((f->area->mode != Colstack) || (f->area->sel == fidx))
match_sizehints(c);
if(!ignore_xcall) {
@@ -495,15 +496,15 @@ resize_client(Client *c, XRectangle *r, Bool ignore_xcall)
f->rect.y, f->rect.width, f->rect.height);
}
- if((f->area->mode != Colstack) || (f->area->sel == idx_of_frame(f))) {
- c->rect.x = def.border;
- c->rect.y = height_of_bar();
+ c->rect.x = def.border;
+ c->rect.y = height_of_bar();
+ if((f->area->sel == fidx) || (f->area->mode != Colstack)) {
c->rect.width = f->rect.width - 2 * def.border;
c->rect.height = f->rect.height - def.border - height_of_bar();
- XMoveResizeWindow(dpy, c->win, c->rect.x, c->rect.y,
- c->rect.width, c->rect.height);
- configure_client(c);
}
+ XMoveResizeWindow(dpy, c->win, c->rect.x, c->rect.y,
+ c->rect.width, c->rect.height);
+ configure_client(c);
}
void