#include "openbox.hh"
#include "client.hh"
#include "screen.hh"
+#include "actions.hh"
#include "otk/property.hh"
#include "otk/display.hh"
#include "otk/assassin.hh"
namespace ob {
-Openbox *Openbox::instance = (Openbox *) 0;
+Openbox *Openbox::instance = (Openbox *) 0;
void Openbox::signalHandler(int signal)
_property = new otk::OBProperty();
+ _actions = new OBActions();
+
+ setMasterHandler(_actions); // set as the master event handler
+
// create the mouse cursors we'll use
_cursors.session = XCreateFontCursor(otk::OBDisplay::display, XC_left_ptr);
_cursors.move = XCreateFontCursor(otk::OBDisplay::display, XC_fleur);
void Openbox::removeClient(Window window)
{
- _clients[window] = 0;
- ClientMap::iterator it = _clients.find(window);
- if (it != _clients.end())
- _clients.erase(it);
+ _clients.erase(window);
}