]> Dogcows Code - chaz/openbox/blobdiff - src/openbox.cc
ustring seems to be working! yay!
[chaz/openbox] / src / openbox.cc
index 5b4ceedceea368bfd80593434c3e5cfe3aef47ab..2be91335d2ffd1d49133c168e812fc99ce1ac12f 100644 (file)
@@ -319,10 +319,12 @@ void Openbox::showHelp()
 
 void Openbox::eventLoop()
 {
-  while (!_shutdown) {
-    _timermanager.fire(!_sync); // wait if not in sync mode
+  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.022872 seconds and 4 git commands to generate.