shutdown everything before closing the display

This commit is contained in:
Dana Jansens 2003-03-19 08:05:25 +00:00
parent c95a4e604c
commit 9a5f1d7b5e

View 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;