all repos — openbox @ e30ae5696f06b11a09355abae2e4eccf51292a88

openbox fork - make it a bit more like ryudo

remove from parents when changing groups
Dana Jansens danakj@orodu.net
commit

e30ae5696f06b11a09355abae2e4eccf51292a88

parent

0dfff40a30349d1d4cf164bdd4bd05a8b272d9a1

1 files changed, 12 insertions(+), 0 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -1284,6 +1284,18 @@ /* remove transients of the group */

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; }