X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fopenbox.cc;h=2be91335d2ffd1d49133c168e812fc99ce1ac12f;hb=711e499c703c5bd3a12183c2cbbd3910c7aba99b;hp=a70f8be44fc69eee26d0bdba10808def1deddeb4;hpb=c03068ee3a2e981e31eeda583d10b9d572de92bd;p=chaz%2Fopenbox 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 } }