]> Dogcows Code - chaz/openbox/commitdiff
fix crash when reconfigure changes the stacking layer of the dock
authorDana Jansens <danakj@orodu.net>
Mon, 8 Sep 2003 03:08:32 +0000 (03:08 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 8 Sep 2003 03:08:32 +0000 (03:08 +0000)
openbox/dock.c

index 1df377b0a07b46b662d29902c7857035af04bfcb..7511366ddc81a999bbdd5897e19220b25837485f 100644 (file)
@@ -21,6 +21,7 @@ void dock_startup(gboolean reconfig)
     XSetWindowAttributes attrib;
 
     if (reconfig) {
+        stacking_add(DOCK_AS_WINDOW(dock));
         dock_configure();
         return;
     }
@@ -48,12 +49,14 @@ void dock_startup(gboolean reconfig)
 
     g_hash_table_insert(window_map, &dock->frame, dock);
     stacking_add(DOCK_AS_WINDOW(dock));
-    stacking_raise(DOCK_AS_WINDOW(dock));
 }
 
 void dock_shutdown(gboolean reconfig)
 {
-    if (reconfig) return;
+    if (reconfig) {
+        stacking_remove(DOCK_AS_WINDOW(dock));
+        return;
+    }
 
     XDestroyWindow(ob_display, dock->frame);
     RrAppearanceFree(dock->a_frame);
This page took 0.022776 seconds and 4 git commands to generate.