summaryrefslogtreecommitdiff
path: root/src/window.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-03 14:29:34 +0000
committerDana Jansens <danakj@orodu.net>2002-11-03 14:29:34 +0000
commit9259ec5732851dd66f7c598d629e3808ac7ab3d8 (patch)
tree5452b84b8937cde5f6977f26c24361cc1c0a5f08 /src/window.hh
parentad80ef0f667e3b72d9e35d7a93451a1e2dfa0ab6 (diff)
new timer infrastructure. takes a function pointer for the timeout, with a void* parameter (useful for holding a class instance!)
Diffstat (limited to 'src/window.hh')
-rw-r--r--src/window.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/window.hh b/src/window.hh
index c8ccc341..29818b43 100644
--- a/src/window.hh
+++ b/src/window.hh
@@ -12,8 +12,8 @@ extern "C" {
#include <string>
+#include "otk/timer.hh"
#include "blackbox.hh"
-#include "timer.hh"
#include "util.hh"
#define MwmHintsFunctions (1l << 0)
@@ -70,7 +70,7 @@ public:
};
-class BlackboxWindow : public TimeoutHandler {
+class BlackboxWindow {
public:
enum Function { Func_Resize = (1l << 0),
Func_Move = (1l << 1),
@@ -105,7 +105,7 @@ private:
Blackbox *blackbox;
BScreen *screen;
XAtom *xatom;
- OBTimer *timer;
+ otk::OBTimer *timer;
BlackboxAttributes blackbox_attrib;
Time lastButtonPressTime; // used for double clicks, when were we clicked
@@ -405,7 +405,7 @@ public:
void shapeEvent(XShapeEvent * /*unused*/);
#endif // SHAPE
- virtual void timeout(void);
+ static void timeout(BlackboxWindow *t);
};
}