From 96a9196cbb71b7f8d5e3d98a92b2e59bb1b591a8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 14 Jan 2003 09:54:05 +0000 Subject: otk::Timer-ng!! thanks ManMower for this shizznit! --- src/openbox.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/openbox.cc') 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 } } -- cgit v1.2.3