From: Dana Jansens Date: Sun, 12 Jan 2003 23:07:15 +0000 (+0000) Subject: check for shutdown before waiting for timers X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=703ef4df2278adef66a65bcfc9455da41d0413e6;p=chaz%2Fopenbox check for shutdown before waiting for timers --- 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 } }