summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/openbox.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/openbox.cc b/src/openbox.cc
index a70f8be4..2be91335 100644
--- a/src/openbox.cc
+++ b/src/openbox.cc
@@ -319,9 +319,11 @@ void Openbox::showHelp()
void Openbox::eventLoop()
{
- while (!_shutdown) {
+ while (true) {
dispatchEvents(); // from otk::EventDispatcher
XFlush(otk::Display::display); // flush here before we go wait for timers
+ // don't wait if we're to shutdown
+ if (_shutdown) break;
_timermanager.fire(!_sync); // wait if not in sync mode
}
}