From: Dana Jansens Date: Wed, 19 Mar 2003 08:05:25 +0000 (+0000) Subject: shutdown everything before closing the display X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=9a5f1d7b5e153b18dbc7f63263ed927bd5a2000b;p=chaz%2Fopenbox shutdown everything before closing the display --- diff --git a/openbox/openbox.c b/openbox/openbox.c index 9f90a9e0..4556fc8f 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -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;