]> Dogcows Code - chaz/openbox/commitdiff
more cleanup
authorDana Jansens <danakj@orodu.net>
Thu, 7 Jun 2007 03:37:09 +0000 (03:37 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 7 Jun 2007 03:37:09 +0000 (03:37 +0000)
openbox/client.c

index 2f1c9c7be2cb3601648fb7a6db9675f5c438cfd2..163dfde4856ab955ecc9f0b0591cfeee4a55d92f 100644 (file)
@@ -1260,12 +1260,9 @@ static void client_update_transient_tree(ObClient *self,
         newparent != NULL && newparent != OB_TRAN_GROUP &&
         newgroup != NULL && newgroup == oldgroup && client_normal(newparent))
     {
-        ObClient *look = newparent;
-        do {
-            self->transients = g_slist_remove(self->transients, look);
-            look->parents = g_slist_remove(look->parents, self);
-            look = look->transient_for;
-        } while (look != NULL && look != OB_TRAN_GROUP && client_normal(look));
+        ObClient *look = client_search_top_direct_parent(newparent);
+        self->transients = g_slist_remove(self->transients, look);
+        look->parents = g_slist_remove(look->parents, self);
     }
             
 
This page took 0.02607 seconds and 4 git commands to generate.