From: Mikael Magnusson Date: Sun, 3 Feb 2008 04:32:08 +0000 (+0100) Subject: Remove from stacking and window lists on reconfigure and remove an old todo. X-Git-Tag: mikabox-3.4.7.2~41^2~3 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=d2b55192c1bade99a79a3817e381280080c4ae8c;p=mikachu%2Fopenbox.git Remove from stacking and window lists on reconfigure and remove an old todo. --- diff --git a/openbox/edges.c b/openbox/edges.c index 2296b026..f5b3d987 100644 --- a/openbox/edges.c +++ b/openbox/edges.c @@ -60,9 +60,6 @@ void edges_startup(gboolean reconfigure) xswa.override_redirect = True; -#warning insert into window_map and make an obwindow type -/* g_hash_table_insert(window_map, &dock->frame, dock); */ - for (i=0; i < OB_NUM_EDGES; i++) { if (!config_edge_enabled[i]) continue; @@ -93,6 +90,8 @@ void edges_shutdown(gboolean reconfigure) gint i; for (i=0; i < OB_NUM_EDGES; i++) { + window_remove(&edge[i]->win); + stacking_remove(INTERNAL_AS_WINDOW(edge[i])); XDestroyWindow(obt_display, edge[i]->win); g_free(edge[i]); }