]> Dogcows Code - chaz/openbox/blobdiff - src/screen.cc
maximizing without bugs! can it be? i think so!
[chaz/openbox] / src / screen.cc
index f86ea6b075ea440441c34b00e2f20c57316cf1c9..72a33b41fd4f8a571647794115145bdd28172937 100644 (file)
@@ -536,7 +536,7 @@ void Screen::manageWindow(Window window)
   // add to the screen's list
   clients.push_back(client);
   // once the client is in the list, update our strut to include the new
-  // client's
+  // client's (it is good that this happens after window placement!)
   updateStrut();
   // this puts into the stacking order, then raises it
   _stacking.push_back(client);
@@ -608,6 +608,10 @@ void Screen::unmanageWindow(Client *client)
   // remove from the screen's list
   clients.remove(client);
 
+  // once the client is out of the list, update our strut to remove it's
+  // influence
+  updateStrut();
+
   // unfocus the client (calls the focus callbacks)
   client->unfocus();
 
This page took 0.02297 seconds and 4 git commands to generate.