X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fblackbox.hh;h=7f07e94680e36a2eb031668cc0dac5b4a1e820b9;hb=d2c380fb54a29a586b97ab6421370e7acdcf28e5;hp=71acf5132e09a3e8965303a2d264510463583ba4;hpb=8ad26109179bd81f046e4aa6f4e5bd698fa1b9be;p=chaz%2Fopenbox diff --git a/src/blackbox.hh b/src/blackbox.hh index 71acf513..7f07e946 100644 --- a/src/blackbox.hh +++ b/src/blackbox.hh @@ -25,10 +25,11 @@ extern "C" { #include #include +#include "otk/timer.hh" #include "openbox.hh" #include "configuration.hh" #include "timer.hh" -#include "xatom.hh" +#include "atom.hh" #define AttribShaded (1l << 0) #define AttribMaxHoriz (1l << 1) @@ -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; @@ -109,9 +110,9 @@ private: BScreen *active_screen; BlackboxWindow *focused_window, *changing_window; - BTimer *timer; + otk::OBTimer *timer; Configuration config; - XAtom *xatom; + OBAtom *xatom; bool no_focus, reconfigure_wait; Time last_time; @@ -157,7 +158,7 @@ public: void removeWindowSearch(Window window); void removeGroupSearch(Window window); - inline XAtom *getXAtom(void) { return xatom; } + inline OBAtom *getXAtom(void) { return xatom; } inline BlackboxWindow *getFocusedWindow(void) { return focused_window; } inline BlackboxWindow *getChangingWindow(void) { return changing_window; } @@ -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); }; }