dispatch events before waiting for timers on startup
authorDana Jansens <danakj@orodu.net>
Sun, 12 Jan 2003 20:52:36 +0000 (20:52 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 12 Jan 2003 20:52:36 +0000 (20:52 +0000)
src/openbox.cc

index 5b4ceed..a70f8be 100644 (file)
@@ -320,9 +320,9 @@ void Openbox::showHelp()
 void Openbox::eventLoop()
 {
   while (!_shutdown) {
-    _timermanager.fire(!_sync); // wait if not in sync mode
     dispatchEvents(); // from otk::EventDispatcher
     XFlush(otk::Display::display); // flush here before we go wait for timers
+    _timermanager.fire(!_sync); // wait if not in sync mode
   }
 }