void Screen::calcArea()
{
-// otk::Rect old_area = _area;
+ otk::Rect old_area = _area;
/*
#ifdef XINERAMA
}
#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();
}