This commit is contained in:
Dana Jansens 2003-02-03 07:58:49 +00:00
parent 7dbc6db043
commit 8b7373cfca

View file

@ -208,7 +208,6 @@ void Screen::manageExisting()
void Screen::updateStrut() void Screen::updateStrut()
{ {
otk::Strut old = _strut;
_strut.left = _strut.right = _strut.top = _strut.bottom = 0; _strut.left = _strut.right = _strut.top = _strut.bottom = 0;
Client::List::iterator it, end = clients.end(); Client::List::iterator it, end = clients.end();
@ -220,18 +219,12 @@ void Screen::updateStrut()
_strut.bottom = std::max(_strut.bottom, s.bottom); _strut.bottom = std::max(_strut.bottom, s.bottom);
} }
calcArea(); calcArea();
if (!(old == _strut)) {
// the strut has changed, adjust all the maximized windows
for (it = clients.begin(); it != end; ++it)
(*it)->remaximize();
}
} }
void Screen::calcArea() void Screen::calcArea()
{ {
// otk::Rect old_area = _area; otk::Rect old_area = _area;
/* /*
#ifdef XINERAMA #ifdef XINERAMA
@ -267,9 +260,11 @@ void Screen::calcArea()
} }
#endif // XINERAMA #endif // XINERAMA
*/ */
//if (old_area != _area) if (old_area != _area)
// XXX: re-maximize windows // the area has changed, adjust all the maximized windows
for (it = clients.begin(); it != end; ++it)
(*it)->remaximize();
changeWorkArea(); changeWorkArea();
} }