summaryrefslogtreecommitdiff
path: root/src/screen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.cc')
-rw-r--r--src/screen.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/screen.cc b/src/screen.cc
index da603ed8..0116e470 100644
--- a/src/screen.cc
+++ b/src/screen.cc
@@ -404,6 +404,8 @@ void OBScreen::manageWindow(Window window)
clients.push_back(client);
// update the root properties
setClientList();
+
+ Openbox::instance->bindings()->grabButtons(true, client);
}
@@ -411,6 +413,8 @@ void OBScreen::unmanageWindow(OBClient *client)
{
OBFrame *frame = client->frame;
+ Openbox::instance->bindings()->grabButtons(false, client);
+
// XXX: pass around focus if this window was focused
// remove from the wm's map