#include "client.hh"
#include "openbox.hh"
#include "frame.hh"
+#include "bindings.hh"
#include "otk/display.hh"
static bool running;
clients.push_back(client);
// update the root properties
setClientList();
+
+ // grab buttons/keys on the window
+ Openbox::instance->bindings()->grabMouse(true, client);
}
{
OBFrame *frame = client->frame;
+ // ungrab buttons/keys on the window
+ Openbox::instance->bindings()->grabMouse(false, client);
+
// XXX: pass around focus if this window was focused
// remove from the wm's map