diff options
Diffstat (limited to 'src/openbox.cc')
| -rw-r--r-- | src/openbox.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/openbox.cc b/src/openbox.cc index 2f089891..f4d11257 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -113,6 +113,7 @@ Openbox::Openbox(int argc, char **argv) sigaction(SIGINT, &action, (struct sigaction *) 0); sigaction(SIGHUP, &action, (struct sigaction *) 0); + otk::Timer::initialize(); _property = new otk::Property(); _actions = new Actions(); _bindings = new Bindings(); @@ -194,6 +195,8 @@ Openbox::~Openbox() // all im gunna do is the same. //otk::display->destroy(); + otk::Timer::destroy(); + if (_restart) { if (!_restart_prog.empty()) { const std::string &dstr = @@ -320,7 +323,7 @@ void Openbox::eventLoop() XFlush(**otk::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 + otk::Timer::dispatchTimers(!_sync); // wait if not in sync mode } } |
