]> Dogcows Code - chaz/openbox/blobdiff - src/screen.cc
rm a XXX.. comment it out :)
[chaz/openbox] / src / screen.cc
index de1927b6ab7d037bdaf4d2ab8a89237d8e2103cf..adcae6d9eabe9da4e8d575ffb001c0e55c46fab2 100644 (file)
@@ -224,7 +224,7 @@ void Screen::updateStrut()
 
 void Screen::calcArea()
 {
-//  otk::Rect old_area = _area;
+  otk::Rect old_area = _area;
 
 /*
 #ifdef    XINERAMA
@@ -260,9 +260,13 @@ void Screen::calcArea()
   }
 #endif // XINERAMA
 */
-  
-  //if (old_area != _area)
-    // XXX: re-maximize windows
+  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();
 }
This page took 0.020621 seconds and 4 git commands to generate.