]> Dogcows Code - chaz/openbox/commitdiff
add group transients to other transients who arent group transients. is that english...
authorDana Jansens <danakj@orodu.net>
Thu, 26 Apr 2007 02:32:50 +0000 (02:32 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 26 Apr 2007 02:32:50 +0000 (02:32 +0000)
openbox/client.c

index 4f71c7fbcd0958fb6f0d6476b2b81f351427d030..84f739ac46f9e17c576564e3c0e29115a8e1f02a 100644 (file)
@@ -1134,7 +1134,8 @@ void client_update_transient_for(ObClient *self)
             /* remove from old parents */
             for (it = self->group->members; it; it = g_slist_next(it)) {
                 ObClient *c = it->data;
-                if (c != self && !c->transient_for)
+                if (c != self && (!c->transient_for ||
+                                  c->transient_for != OB_TRAN_GROUP))
                     c->transients = g_slist_remove(c->transients, self);
             }
         } else if (self->transient_for != NULL) { /* transient of window */
@@ -1149,7 +1150,8 @@ void client_update_transient_for(ObClient *self)
             /* add to new parents */
             for (it = self->group->members; it; it = g_slist_next(it)) {
                 ObClient *c = it->data;
-                if (c != self && !c->transient_for)
+                if (c != self && (!c->transient_for ||
+                                  c->transient_for != OB_TRAN_GROUP))
                     c->transients = g_slist_append(c->transients, self);
             }
 
This page took 0.026531 seconds and 4 git commands to generate.