summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-23 20:34:13 +0000
committerDana Jansens <danakj@orodu.net>2003-03-23 20:34:13 +0000
commitb18f5f1d2b34182b859183646d82cad9ed1fb0df (patch)
tree93d684ea55c4980f80ac728580a8c2217f97e3ef /openbox
parentfb893e8dcd43de39d99aca6f6a3a2877532aad8a (diff)
when adjusting the trasient lists, set them, dont leave them hanging into space
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c
index c1b76cba..bc79adf0 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -186,6 +186,7 @@ void client_manage(Window window)
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 @@ void client_update_transient_for(Client *self)
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);
}
}