From: Dana Jansens Date: Mon, 3 Feb 2003 07:58:49 +0000 (+0000) Subject: rm a XXX X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=8b7373cfca831950556511d349b89db46915ba60;hp=7dbc6db04387c442add000b36639a3f0ed5e183a;p=chaz%2Fopenbox rm a XXX --- diff --git a/src/screen.cc b/src/screen.cc index 40f143a1..36e6ae0d 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -208,7 +208,6 @@ 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(); @@ -220,18 +219,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(); - } } void Screen::calcArea() { -// otk::Rect old_area = _area; + otk::Rect old_area = _area; /* #ifdef XINERAMA @@ -267,9 +260,11 @@ void Screen::calcArea() } #endif // XINERAMA */ - - //if (old_area != _area) - // XXX: re-maximize windows + + if (old_area != _area) + // the area has changed, adjust all the maximized windows + for (it = clients.begin(); it != end; ++it) + (*it)->remaximize(); changeWorkArea(); }