XResizeWindow(otk::OBDisplay::display, _window,
_size.left + _size.right + _client->area().width(),
_size.top + _size.bottom + _client->area().height());
+ XMoveWindow(otk::OBDisplay::display, _client->window(),
+ _size.left, _size.top);
// XXX: more is gunna have to happen here
}
Openbox::~Openbox()
{
_state = State_Exiting; // time to kill everything
+
+ // unmanage all windows
+ ClientMap::iterator it, end;
+ for (it = _clients.begin(), end = _clients.end(); it != end; ++it) {
+ _xeventhandler.unmanageWindow(it->second);
+ }
// close the X display
otk::OBDisplay::destroy();
// XXX: put this into the OBScreen or OBClient class!
-static void manageWindow(int screen, Window window)
+void OBXEventHandler::manageWindow(int screen, Window window)
{
OBClient *client = 0;
XWMHints *wmhint;
}
// XXX: move this to the OBScreen or OBClient class!
-static void unmanageWindow(OBClient *client)
+void OBXEventHandler::unmanageWindow(OBClient *client)
{
OBFrame *frame = client->frame;
namespace ob {
+// XXX: TEMPORARY!!
+class OBClient;
+
+
//! Handles X events
/*!
There are 2 type of X events:<br>
@param e The XEvent to handle
*/
void handle(const XEvent &e);
+
+
+ // XXX: TEMPORARY MOVE TO A SCREEN CLASS OR SOMETHING
+ void manageWindow(int, Window);
+ void unmanageWindow(OBClient*);
};
}