From 9259ec5732851dd66f7c598d629e3808ac7ab3d8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 3 Nov 2002 14:29:34 +0000 Subject: new timer infrastructure. takes a function pointer for the timeout, with a void* parameter (useful for holding a class instance!) --- src/window.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/window.cc') diff --git a/src/window.cc b/src/window.cc index 2e7ba087..035d2469 100644 --- a/src/window.cc +++ b/src/window.cc @@ -135,7 +135,9 @@ BlackboxWindow::BlackboxWindow(Blackbox *b, Window w, BScreen *s) { lastButtonPressTime = 0; - timer = new OBTimer(this); + timer = new otk::OBTimer(Openbox::instance->timerManager(), + (otk::OBTimeoutHandler)timeout, + this); timer->setTimeout(blackbox->getAutoRaiseDelay()); // get size, aspect, minimum/maximum size and other hints set by the @@ -3902,8 +3904,9 @@ void BlackboxWindow::restore(bool remap) { // timer for autoraise -void BlackboxWindow::timeout(void) { - screen->getWorkspace(blackbox_attrib.workspace)->raiseWindow(this); +void BlackboxWindow::timeout(BlackboxWindow *t) { + t->screen->getWorkspace(t->blackbox_attrib.workspace)->raiseWindow(t); + printf("TIMED OUT YA YAY\n"); } -- cgit v1.2.3