]> Dogcows Code - chaz/openbox/commitdiff
shutdown everything before closing the display
authorDana Jansens <danakj@orodu.net>
Wed, 19 Mar 2003 08:05:25 +0000 (08:05 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 19 Mar 2003 08:05:25 +0000 (08:05 +0000)
openbox/openbox.c

index 9f90a9e01e729e7a2a1d2e149c75ac2819ae5946..4556fc8fcc677d94e40fb2274a632ad774750920 100644 (file)
@@ -150,9 +150,8 @@ int main(int argc, char **argv)
        client_manage_all();
 
        ob_state = State_Running;
-       while (!ob_shutdown) {
+       while (!ob_shutdown)
            event_loop();
-       }
        ob_state = State_Exiting;
 
        client_unmanage_all();
@@ -169,10 +168,10 @@ int main(int argc, char **argv)
        timer_shutdown();
     }
 
-    XCloseDisplay(ob_display);
-
     dispatch_shutdown();
 
+    XCloseDisplay(ob_display);
+
     /* XXX if (ob_restart) */
      
     return 0;
This page took 0.023238 seconds and 4 git commands to generate.