@brief The main class for the Openbox window manager
*/
+/*
+ cuz girls look soooo goood.. on the end of my DICK
+*/
+
extern "C" {
#include <X11/Xlib.h>
}
#include "otk/timerqueuemanager.hh"
#include "otk/property.hh"
#include "otk/configuration.hh"
-#include "xeventhandler.hh"
+#include "otk/eventdispatcher.hh"
+#include "otk/eventhandler.hh"
#include "client.hh"
namespace ob {
not exit until the window manager is ready to be destroyed. Destruction of
the Openbox class instance will shutdown the window manager.
*/
-class Openbox
+class Openbox : public otk::OtkEventDispatcher, public otk::OtkEventHandler
{
public:
//! The single instance of the Openbox class for the application.
*/
otk::OBTimerQueueManager _timermanager;
- //! The class which will handle raw XEvents
- OBXEventHandler _xeventhandler;
-
//! Cached atoms on the display
/*!
This is a pointer because the OBProperty class uses otk::OBDisplay::display
inline const otk::OBProperty *property() const { return _property; }
//! Returns a managed screen
- inline const OBScreen *screen(int num) const {
+ inline OBScreen *screen(int num) {
assert(num >= 0); assert(num < (signed)_screens.size());
return _screens[num];
}
manager can be destroyed.
*/
inline void shutdown() { _doshutdown = true; }
+
+ virtual void mapRequestHandler(const XMapRequestEvent &);
};
}