Reparent client before applying tags (fixes strange behavior on client creation)

This commit is contained in:
Kris Maglione 2007-02-11 03:02:00 -05:00
parent a36cc9e64b
commit 579220a962
2 changed files with 6 additions and 3 deletions

2
area.c
View File

@ -152,9 +152,9 @@ attach_to_area(Area *a, Frame *f, Bool send) {
else
place_client(a, c);
focus_frame(f, False);
if(!a->floating)
arrange_column(a, False);
focus_frame(f, False);
update_client_grab(f->client);
assert(a->sel);

View File

@ -73,10 +73,13 @@ manage_client(Client *c) {
else if(tags.nitems)
strncpy(c->tags, (char *)tags.value, sizeof(c->tags));
XFree(tags.value);
reparent_client(c, c->framewin, c->rect.x, c->rect.y);
if(!strlen(c->tags))
apply_rules(c);
apply_tags(c, c->tags);
reparent_client(c, c->framewin, c->rect.x, c->rect.y);
else
apply_tags(c, c->tags);
if(!starting)
update_views();
XSync(blz.dpy, False);