dispatch events before waiting for timers on startup

This commit is contained in:
Dana Jansens 2003-01-12 20:52:36 +00:00
parent bd39de609b
commit c03068ee3a

View 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
}
}