X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fscreen.cc;h=40f143a13539fe694610beb52733fa67c27bb734;hb=d22a6c6c04cf20bd23efa68ad1202f278f25e113;hp=de1927b6ab7d037bdaf4d2ab8a89237d8e2103cf;hpb=b18e83e010a9dec95d42296751469aba0960bc5c;p=chaz%2Fopenbox 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(); + } }