summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/screen.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/screen.cc b/src/screen.cc
index 36e6ae0d..adcae6d9 100644
--- a/src/screen.cc
+++ b/src/screen.cc
@@ -261,10 +261,12 @@ void Screen::calcArea()
#endif // XINERAMA
*/
- if (old_area != _area)
+ if (old_area != _area) {
// the area has changed, adjust all the maximized windows
+ Client::List::iterator it, end = clients.end();
for (it = clients.begin(); it != end; ++it)
(*it)->remaximize();
+ }
changeWorkArea();
}