remaximize windows when the strut changes

This commit is contained in:
Dana Jansens 2003-02-01 12:25:24 +00:00
parent 5802cf6109
commit 83bfa01b0b

View file

@ -208,6 +208,7 @@ void Screen::manageExisting()
void Screen::updateStrut()
{
otk::Strut old = _strut;
_strut.left = _strut.right = _strut.top = _strut.bottom = 0;
Client::List::iterator it, end = clients.end();
@ -219,6 +220,12 @@ void Screen::updateStrut()
_strut.bottom = std::max(_strut.bottom, s.bottom);
}
calcArea();
if (!(old == _strut)) {
// the strut has changed, adjust all the maximized windows
for (it = clients.begin(); it != end; ++it)
(*it)->remaximize();
}
}