remove from parents when changing groups
This commit is contained in:
parent
0dfff40a30
commit
e30ae5696f
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue