From 9a5f1d7b5e153b18dbc7f63263ed927bd5a2000b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 19 Mar 2003 08:05:25 +0000 Subject: [PATCH] shutdown everything before closing the display --- openbox/openbox.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.39.2