From 9860b76c50e5ecacc85921539058eab4c655c38d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 4 Dec 2002 01:04:31 +0000 Subject: unmap works.. once --- src/screen.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/screen.cc') diff --git a/src/screen.cc b/src/screen.cc index 3c6731c2..01abd83c 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -350,6 +350,8 @@ void OBScreen::manageWindow(Window window) // create the OBClient class, which gets all of the hints on the window Openbox::instance->addClient(window, client = new OBClient(_number, window)); + // register for events + Openbox::instance->registerHandler(window, client); // we dont want a border on the client XSetWindowBorderWidth(otk::OBDisplay::display, window, 0); @@ -384,6 +386,9 @@ void OBScreen::unmanageWindow(OBClient *client) OBFrame *frame = client->frame; // XXX: pass around focus if this window was focused + + // unregister for handling events + Openbox::instance->clearHandler(client->window()); // remove the window from our save set XChangeSaveSet(otk::OBDisplay::display, client->window(), SetModeDelete); -- cgit v1.2.3