shutdown everything before closing the display
This commit is contained in:
parent
c95a4e604c
commit
9a5f1d7b5e
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue