X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fblackbox.hh;h=00f70cb9325ec077ea5cc98863e102b77f5069c7;hb=d0b55be2c7afb5b25b42804c9eab4995e64dff52;hp=acce7b8ba2fb521a2e48a0fe27fac3e4d38af447;hpb=86bef745b9e974f664752c6cc56f7e6ec5642efc;p=chaz%2Fopenbox diff --git a/src/blackbox.hh b/src/blackbox.hh index acce7b8b..00f70cb9 100644 --- a/src/blackbox.hh +++ b/src/blackbox.hh @@ -25,7 +25,8 @@ extern "C" { #include #include -#include "basedisplay.hh" +#include "otk/timer.hh" +#include "openbox.hh" #include "configuration.hh" #include "timer.hh" #include "xatom.hh" @@ -47,6 +48,8 @@ extern "C" { #define DecorTiny (2) #define DecorTool (3) +namespace ob { + struct BlackboxHints { unsigned long flags, attrib, workspace, stack, decoration; }; @@ -67,7 +70,7 @@ class Blackbox; class BlackboxWindow; class BWindowGroup; -class Blackbox : public BaseDisplay, public TimeoutHandler { +class Blackbox : public Openbox { private: struct BCursor { Cursor session, move, ll_angle, lr_angle, ul_angle, ur_angle; @@ -107,7 +110,7 @@ private: BScreen *active_screen; BlackboxWindow *focused_window, *changing_window; - BTimer *timer; + otk::OBTimer *timer; Configuration config; XAtom *xatom; @@ -127,7 +130,7 @@ private: public: - Blackbox(char **m_argv, char *dpy_name = 0, char *rc = 0); + Blackbox(int argc, char **m_argv, char *rc = 0); virtual ~Blackbox(void); BWindowGroup *searchGroup(Window window); @@ -211,10 +214,11 @@ public: virtual bool handleSignal(int sig); - virtual void timeout(void); + static void timeout(Blackbox *t); enum { B_AmericanDate = 1, B_EuropeanDate }; }; +} #endif // __blackbox_hh