when adjusting the trasient lists, set them, dont leave them hanging into space
Dana Jansens danakj@orodu.net
1 files changed,
5 insertions(+),
2 deletions(-)
jump to
M
openbox/client.c
→
openbox/client.c
@@ -186,6 +186,7 @@ grab_server(FALSE);
client_list = g_slist_append(client_list, client); stacking_list = g_list_append(stacking_list, client); + g_assert(!g_hash_table_lookup(client_map, (gpointer)client->window)); g_hash_table_insert(client_map, (gpointer)window, client); /* update the focus lists */@@ -548,11 +549,13 @@ /* if anything has changed... */
if (c != self->transient_for) { if (self->transient_for) /* remove from old parent */ - g_slist_remove(self->transient_for->transients, self); + self->transient_for->transients = + g_slist_remove(self->transient_for->transients, self); self->transient_for = c; if (self->transient_for) /* add to new parent */ - g_slist_append(self->transient_for->transients, self); + self->transient_for->transients = + g_slist_append(self->transient_for->transients, self); } }