]> Dogcows Code - chaz/openbox/commitdiff
remove from parents when changing groups
authorDana Jansens <danakj@orodu.net>
Sat, 27 Sep 2003 17:57:02 +0000 (17:57 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 27 Sep 2003 17:57:02 +0000 (17:57 +0000)
openbox/client.c

index c60c77fb13cf0ddfa2636253530d39fc21e355c0..bc3c6f0d76bb17bca9646245b7035e333230e95d 100644 (file)
@@ -1284,6 +1284,18 @@ void client_update_wmhints(ObClient *self)
                 for (it = self->group->members; it; it = it->next)
                     self->transients = g_slist_remove(self->transients,
                                                       it->data);
+
+                /* remove myself from parents in the group */
+                if (self->transient_for == OB_TRAN_GROUP) {
+                    for (it = self->group->members; it; it = it->next) {
+                        ObClient *c = it->data;
+
+                        if (c != self && !c->transient_for)
+                            c->transients = g_slist_remove(c->transients,
+                                                           self);
+                    }
+                }
+
                 group_remove(self->group, self);
                 self->group = NULL;
             }
This page took 0.024566 seconds and 4 git commands to generate.