From 83bfa01b0bf361d4a2354e5ef0f48ed759e0eab3 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 1 Feb 2003 12:25:24 +0000 Subject: [PATCH] remaximize windows when the strut changes --- src/screen.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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(); + } } -- 2.39.2