From d7a30f93b517ac76816d0acea92e9c56ad5d6594 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 30 Dec 2002 22:27:46 +0000 Subject: so close to keybindings. wont link for now. --- src/screen.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/screen.cc') diff --git a/src/screen.cc b/src/screen.cc index d61b501d..e4518fba 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -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 -- cgit v1.2.3