]> Dogcows Code - chaz/openbox/commitdiff
check for shutdown before waiting for timers
authorDana Jansens <danakj@orodu.net>
Sun, 12 Jan 2003 23:07:15 +0000 (23:07 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 12 Jan 2003 23:07:15 +0000 (23:07 +0000)
src/openbox.cc

index a70f8be44fc69eee26d0bdba10808def1deddeb4..2be91335d2ffd1d49133c168e812fc99ce1ac12f 100644 (file)
@@ -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
   }
 }
This page took 0.022002 seconds and 4 git commands to generate.