X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fblackbox.hh;h=00f70cb9325ec077ea5cc98863e102b77f5069c7;hb=d0b55be2c7afb5b25b42804c9eab4995e64dff52;hp=818a7842426a5f2383d82655bda197edda53a8c9;hpb=ace8c8896aa13a6fc4e489277cf9c96f49175322;p=chaz%2Fopenbox diff --git a/src/blackbox.hh b/src/blackbox.hh index 818a7842..00f70cb9 100644 --- a/src/blackbox.hh +++ b/src/blackbox.hh @@ -25,6 +25,7 @@ extern "C" { #include #include +#include "otk/timer.hh" #include "openbox.hh" #include "configuration.hh" #include "timer.hh" @@ -69,7 +70,7 @@ class Blackbox; class BlackboxWindow; class BWindowGroup; -class Blackbox : public Openbox, public TimeoutHandler, public TimerQueueManager { +class Blackbox : public Openbox { private: struct BCursor { Cursor session, move, ll_angle, lr_angle, ul_angle, ur_angle; @@ -81,7 +82,7 @@ private: std::string style_file; int colors_per_channel; - ::timeval auto_raise_delay; + timeval auto_raise_delay; unsigned long cache_life, cache_max; std::string titlebar_layout; unsigned int mod_mask; // modifier mask used for window-mouse interaction @@ -109,7 +110,7 @@ private: BScreen *active_screen; BlackboxWindow *focused_window, *changing_window; - BTimer *timer; + otk::OBTimer *timer; Configuration config; XAtom *xatom; @@ -176,7 +177,7 @@ public: inline std::string getTitlebarLayout(void) const { return resource.titlebar_layout; } - inline const ::timeval &getAutoRaiseDelay(void) const + inline const timeval &getAutoRaiseDelay(void) const { return resource.auto_raise_delay; } inline unsigned long getCacheLife(void) const @@ -213,12 +214,9 @@ public: virtual bool handleSignal(int sig); - virtual void timeout(void); + static void timeout(Blackbox *t); enum { B_AmericanDate = 1, B_EuropeanDate }; - - virtual void addTimer(BTimer *timer); - virtual void removeTimer(BTimer *timer); }; }