summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/screen.cc7
1 files changed, 7 insertions, 0 deletions
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();
+ }
}