From a2de94e91e1c0e7775c97745ae11d14e5c5f5659 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 7 Jan 2003 19:24:38 +0000 Subject: in synch mode, chew up 100% cpu, cuz we cant select on the display's fd --- src/openbox.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/openbox.cc b/src/openbox.cc index 4e098cb8..dda52848 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -306,7 +306,7 @@ void Openbox::showHelp() void Openbox::eventLoop() { while (!_shutdown) { - _timermanager.fire(); + _timermanager.fire(!_sync); // wait if not in sync mode dispatchEvents(); // from OtkEventDispatcher XFlush(otk::OBDisplay::display); // flush here before we go wait for timers } -- cgit v1.2.3