From: Dana Jansens Date: Tue, 7 Jan 2003 05:48:12 +0000 (+0000) Subject: change the unmanae ordeer around to have the callbacks fire last X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=dc532b7661e0d9bc72c25b74fa987ce50f3f0b31;p=chaz%2Fopenbox change the unmanae ordeer around to have the callbacks fire last --- diff --git a/src/screen.cc b/src/screen.cc index 7f15b243..eddda8df 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -556,12 +556,6 @@ void OBScreen::unmanageWindow(OBClient *client) Openbox::instance->bindings()->grabButtons(false, client); - // remove from the stacking order - _stacking.remove(client); - - // unfocus the client - client->unfocus(); - // remove from the wm's map Openbox::instance->removeClient(client->window()); Openbox::instance->removeClient(frame->window()); @@ -592,8 +586,15 @@ void OBScreen::unmanageWindow(OBClient *client) delete client->frame; client->frame = 0; + // remove from the stacking order + _stacking.remove(client); + // remove from the screen's list clients.remove(client); + + // unfocus the client (calls the focus callbacks) + client->unfocus(); + delete client; // update the root properties