diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-07 03:37:09 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-07 03:37:09 +0000 |
| commit | 428880d75ad74b6a1b964385f85984b493daa657 (patch) | |
| tree | 8ed4bc825b379a7a5da0edba9198843f3d7cc5a9 | |
| parent | 7a33207a50c983fe49d16d8d6acd62787c3b36c3 (diff) | |
more cleanup
| -rw-r--r-- | openbox/client.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/openbox/client.c b/openbox/client.c index 2f1c9c7b..163dfde4 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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); } |
