openbox->registerHandler(_info->rootWindow(), this);
// call the python Startup callbacks
openbox->registerHandler(_info->rootWindow(), this);
// call the python Startup callbacks
- EventData data(_number, 0, EventAction::Shutdown, 0);
+ EventData data(_number, 0, EventAction::Startup, 0);
-
- //if (old_area != _area)
- // XXX: re-maximize windows
+
+ if (old_area != _area) {
+ // the area has changed, adjust all the maximized windows
+ Client::List::iterator it, end = clients.end();
+ for (it = clients.begin(); it != end; ++it)
+ (*it)->remaximize();
+ }
// position the window intelligenty .. hopefully :)
// call the python PLACEWINDOW binding
EventData data(_number, client, EventAction::PlaceWindow, 0);
openbox->bindings()->fireEvent(&data);
}
// position the window intelligenty .. hopefully :)
// call the python PLACEWINDOW binding
EventData data(_number, client, EventAction::PlaceWindow, 0);
openbox->bindings()->fireEvent(&data);
}
- EventData data(_number, client, EventAction::DisplayingWindow, 0);
- openbox->bindings()->fireEvent(&data);
+ EventData ddata(_number, client, EventAction::DisplayingWindow, 0);
+ openbox->bindings()->fireEvent(&ddata);
// add to the screen's list
clients.push_back(client);
// once the client is in the list, update our strut to include the new
// add to the screen's list
clients.push_back(client);
// once the client is in the list, update our strut to include the new
updateStrut();
// this puts into the stacking order, then raises it
_stacking.push_back(client);
updateStrut();
// this puts into the stacking order, then raises it
_stacking.push_back(client);
- EventData data(_number, client, EventAction::NewWindow, 0);
- openbox->bindings()->fireEvent(&data);
+ EventData ndata(_number, client, EventAction::NewWindow, 0);
+ openbox->bindings()->fireEvent(&ndata);