From b35dae95a5cdb902f1661b9572af47c3f55c975c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 3 Jan 2003 02:48:25 +0000 Subject: new mouse button code is seeming to work. you can move windows --- src/screen.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/screen.cc') 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 -- cgit v1.2.3