mirror of https://github.com/0intro/wmii
Reparent client before applying tags (fixes strange behavior on client creation)
This commit is contained in:
parent
a36cc9e64b
commit
579220a962
2
area.c
2
area.c
|
@ -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);
|
||||
|
|
5
client.c
5
client.c
|
@ -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);
|
||||
else
|
||||
apply_tags(c, c->tags);
|
||||
reparent_client(c, c->framewin, c->rect.x, c->rect.y);
|
||||
|
||||
if(!starting)
|
||||
update_views();
|
||||
XSync(blz.dpy, False);
|
||||
|
|
Loading…
Reference in New Issue