// 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);
// 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();