]> Dogcows Code - chaz/openbox/commitdiff
remaximize windows when the strut changes
authorDana Jansens <danakj@orodu.net>
Sat, 1 Feb 2003 12:25:24 +0000 (12:25 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 1 Feb 2003 12:25:24 +0000 (12:25 +0000)
src/screen.cc

index de1927b6ab7d037bdaf4d2ab8a89237d8e2103cf..40f143a13539fe694610beb52733fa67c27bb734 100644 (file)
@@ -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();
+  }
 }
 
 
This page took 0.025135 seconds and 4 git commands to generate.