From dc532b7661e0d9bc72c25b74fa987ce50f3f0b31 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 7 Jan 2003 05:48:12 +0000 Subject: [PATCH] change the unmanae ordeer around to have the callbacks fire last --- src/screen.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 -- 2.39.2