[hackers] [wmii] Reparent client before applying tags (fixes strange behavior on client creation)

From: Kris Maglione <jg_AT_suckless.org>
Date: Sun Feb 11 09:05:50 2007

changeset: 1843:8c70a41758bc
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Feb 11 03:02:00 2007 -0500
summary: Reparent client before applying tags (fixes strange behavior on client creation)

diff -r c03bc4c31a09 -r 8c70a41758bc area.c
--- a/area.c Sun Feb 11 02:36:05 2007 -0500
+++ b/area.c Sun Feb 11 03:02:00 2007 -0500
@@ -152,9 +152,9 @@ attach_to_area(Area *a, Frame *f, Bool s
         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);
diff -r c03bc4c31a09 -r 8c70a41758bc client.c
--- a/client.c Sun Feb 11 02:36:05 2007 -0500
+++ b/client.c Sun Feb 11 03:02:00 2007 -0500
@@ -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);
Received on Sun Feb 11 2007 - 09:05:50 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:10 UTC