all repos — openbox @ 703ef4df2278adef66a65bcfc9455da41d0413e6

openbox fork - make it a bit more like ryudo

check for shutdown before waiting for timers
Dana Jansens danakj@orodu.net
commit

703ef4df2278adef66a65bcfc9455da41d0413e6

parent

2627b85226b621868a4425f4aea695ed089d7de5

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/openbox.ccsrc/openbox.cc

@@ -319,9 +319,11 @@

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