]> Dogcows Code - chaz/openbox/blobdiff - src/screen.cc
so close to keybindings. wont link for now.
[chaz/openbox] / src / screen.cc
index d61b501d8bf40ce77c96dcd5d6f8657de21be01a..e4518fba3b4af1595b0719ba546033c97676d44f 100644 (file)
@@ -22,6 +22,7 @@ extern "C" {
 #include "client.hh"
 #include "openbox.hh"
 #include "frame.hh"
+#include "bindings.hh"
 #include "otk/display.hh"
 
 static bool running;
@@ -400,6 +401,9 @@ void OBScreen::manageWindow(Window window)
   clients.push_back(client);
   // update the root properties
   setClientList();
+
+  // grab buttons/keys on the window
+  Openbox::instance->bindings()->grabMouse(true, client);
 }
 
 
@@ -407,6 +411,9 @@ void OBScreen::unmanageWindow(OBClient *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
This page took 0.020183 seconds and 4 git commands to generate.