]> Dogcows Code - chaz/openbox/commitdiff
change the unmanae ordeer around to have the callbacks fire last
authorDana Jansens <danakj@orodu.net>
Tue, 7 Jan 2003 05:48:12 +0000 (05:48 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 7 Jan 2003 05:48:12 +0000 (05:48 +0000)
src/screen.cc

index 7f15b243a4a2d62a246ff75368ac7a2a4b3c7a67..eddda8df9dd1b1b67d32ef1ae2d746b36b6de039 100644 (file)
@@ -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
This page took 0.022696 seconds and 4 git commands to generate.