]> Dogcows Code - chaz/openbox/blobdiff - src/screen.cc
unmap works.. once
[chaz/openbox] / src / screen.cc
index 3c6731c2c940ad5732bbd241bc88352922219d77..01abd83c0c341a7f7deadf026bd7db5cda8d7d4b 100644 (file)
@@ -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);
This page took 0.026328 seconds and 4 git commands to generate.