commit bf82150f60bcc555562f2c65775e497ba4b7648e
parent 137bae1174ccd28ad9d68ecc621e6cdb089e4f49
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Mon, 13 Mar 2006 10:45:30 +0100
fixed bug which moved other windows inplace on updating /def/font
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/cmd/wm/client.c b/cmd/wm/client.c
@@ -442,8 +442,12 @@ resize_client(Client *c, XRectangle *r, XPoint *pt, Bool ignore_xcall)
if((f->area->mode != Colstack) || (f->area->sel == frame2index(f)))
match_sizehints(c);
- if(!ignore_xcall)
- XMoveResizeWindow(dpy, c->framewin, f->rect.x, f->rect.y, f->rect.width, f->rect.height);
+ if(!ignore_xcall) {
+ if(f->area->tag == tag[sel])
+ XMoveResizeWindow(dpy, c->framewin, f->rect.x, f->rect.y, f->rect.width, f->rect.height);
+ else
+ XMoveResizeWindow(dpy, c->framewin, 2 * rect.width + f->rect.x, f->rect.y, f->rect.width, f->rect.height);
+ }
if((f->area->mode != Colstack) || (f->area->sel == frame2index(f))) {
c->rect.x = def.border;