commit 61a9a95c04f34bbcd1b9b2c8b1a0c037e2f1b507
parent 504b6fd8cc91a9c74611992cb482b41421e706c6
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Thu, 2 Feb 2006 20:22:27 +0200
fixed attach_client and resize_client
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/cmd/wm/client.c b/cmd/wm/client.c
@@ -368,6 +368,7 @@ attach_client(Client *c)
sizeof(Client *), &a->clientsz);
a->nclient++;
}
+ resize_client(c, &c->frame.rect, nil);
map_client(c);
XMapWindow(dpy, c->frame.win);
focus_client(c);
@@ -484,6 +485,8 @@ resize_client(Client *c, XRectangle *r, XPoint *pt)
if(index_of_area(c->page, c->area) > 0)
resize_column(c, r, pt);
+ else
+ c->frame.rect = *r;
/* resize if client requests special size */
check_dimensions(c, tabh, bw);