all repos — openbox @ 8b7373cfca831950556511d349b89db46915ba60

openbox fork - make it a bit more like ryudo

rm a XXX
Dana Jansens danakj@orodu.net
commit

8b7373cfca831950556511d349b89db46915ba60

parent

7dbc6db04387c442add000b36639a3f0ed5e183a

1 files changed, 6 insertions(+), 11 deletions(-)

jump to
M src/screen.ccsrc/screen.cc

@@ -208,7 +208,6 @@

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 @@ _strut.top = std::max(_strut.top, s.top);

_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 @@ }

} #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(); }