#include <map>
#include <string>
-#include "basedisplay.hh"
+#include "otk/timer.hh"
+#include "openbox.hh"
#include "configuration.hh"
#include "timer.hh"
#include "xatom.hh"
#define DecorTiny (2)
#define DecorTool (3)
+namespace ob {
+
struct BlackboxHints {
unsigned long flags, attrib, workspace, stack, decoration;
};
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;
BScreen *active_screen;
BlackboxWindow *focused_window, *changing_window;
- BTimer *timer;
+ otk::OBTimer *timer;
Configuration config;
XAtom *xatom;
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);
virtual bool handleSignal(int sig);
- virtual void timeout(void);
+ static void timeout(Blackbox *t);
enum { B_AmericanDate = 1, B_EuropeanDate };
};
+}
#endif // __blackbox_hh