X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fblackbox.hh;h=0034f9f27845277c3d973ff1e9bd5fc9af1f21cc;hb=c9f36d34a414123cec8ebc35c87b8b9d5673b155;hp=947c0a99b25641a3ca3a67eb50046310fbe329a4;hpb=373de009f7e98b0c6f3a78f31c1e5c120cd722ed;p=chaz%2Fopenbox diff --git a/src/blackbox.hh b/src/blackbox.hh index 947c0a99..0034f9f2 100644 --- a/src/blackbox.hh +++ b/src/blackbox.hh @@ -25,10 +25,11 @@ extern "C" { #include #include +#include "otk/timer.hh" +#include "otk/property.hh" #include "openbox.hh" #include "configuration.hh" #include "timer.hh" -#include "xatom.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 { +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; - OBTimer *timer; + otk::OBTimer *timer; Configuration config; - XAtom *xatom; + otk::OBProperty *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 otk::OBProperty *getXAtom(void) { return xatom; } inline BlackboxWindow *getFocusedWindow(void) { return focused_window; } inline BlackboxWindow *getChangingWindow(void) { return changing_window; } @@ -213,7 +214,7 @@ public: virtual bool handleSignal(int sig); - virtual void timeout(void); + static void timeout(Blackbox *t); enum { B_AmericanDate = 1, B_EuropeanDate }; };