From: Dana Jansens Date: Sat, 1 Feb 2003 12:25:24 +0000 (+0000) Subject: remaximize windows when the strut changes X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=83bfa01b0bf361d4a2354e5ef0f48ed759e0eab3;p=chaz%2Fopenbox remaximize windows when the strut changes --- diff --git a/src/screen.cc b/src/screen.cc index de1927b6..40f143a1 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -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(); + } }