namespace ob {
Openbox *Openbox::instance = (Openbox *) 0;
-OBActions *Openbox::actions = (OBActions *) 0;
void Openbox::signalHandler(int signal)
_property = new otk::OBProperty();
- Openbox::actions = new OBActions();
+ _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);
void Openbox::removeClient(Window window)
{
- _clients[window] = 0;
- ClientMap::iterator it = _clients.find(window);
- if (it != _clients.end())
- _clients.erase(it);
+ _clients.erase(window);
}