fix compile err
authorDana Jansens <danakj@orodu.net>
Mon, 3 Feb 2003 08:16:52 +0000 (08:16 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 3 Feb 2003 08:16:52 +0000 (08:16 +0000)
src/screen.cc

index 36e6ae0dc72f674e4897a08c6334f6e89648a949..adcae6d9eabe9da4e8d575ffb001c0e55c46fab2 100644 (file)
@@ -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();
 }