X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fscreen.cc;h=13e2a79af14ad8ae96e8704d1052a977a6824859;hb=e1e5293ae354ab7b1c8459aab85e60e1a801924d;hp=f86ea6b075ea440441c34b00e2f20c57316cf1c9;hpb=359218b6efc4dc57f8db12a6440a8a6c9a99e835;p=chaz%2Fopenbox diff --git a/src/screen.cc b/src/screen.cc index f86ea6b0..13e2a79a 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -134,7 +134,7 @@ Screen::Screen(int screen) openbox->registerHandler(_info->rootWindow(), this); // call the python Startup callbacks - EventData data(_number, 0, EventAction::Shutdown, 0); + EventData data(_number, 0, EventAction::Startup, 0); openbox->bindings()->fireEvent(&data); } @@ -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();