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();
|
client_manage_all();
|
||||||
|
|
||||||
ob_state = State_Running;
|
ob_state = State_Running;
|
||||||
while (!ob_shutdown) {
|
while (!ob_shutdown)
|
||||||
event_loop();
|
event_loop();
|
||||||
}
|
|
||||||
ob_state = State_Exiting;
|
ob_state = State_Exiting;
|
||||||
|
|
||||||
client_unmanage_all();
|
client_unmanage_all();
|
||||||
|
@ -169,10 +168,10 @@ int main(int argc, char **argv)
|
||||||
timer_shutdown();
|
timer_shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
XCloseDisplay(ob_display);
|
|
||||||
|
|
||||||
dispatch_shutdown();
|
dispatch_shutdown();
|
||||||
|
|
||||||
|
XCloseDisplay(ob_display);
|
||||||
|
|
||||||
/* XXX if (ob_restart) */
|
/* XXX if (ob_restart) */
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue