]> Dogcows Code - chaz/openbox/commitdiff
dont ignore full maxed windows while they are shaded just because they are full maxed
authorDana Jansens <danakj@orodu.net>
Tue, 23 Jul 2002 20:54:40 +0000 (20:54 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 23 Jul 2002 20:54:40 +0000 (20:54 +0000)
src/Workspace.cc

index 366e8192e616e3f96dbfa093a8f489fb6e54e5a6..a7887945470223faa69d5b12ce458816fd2f4332 100644 (file)
@@ -615,8 +615,12 @@ bool Workspace::smartPlacement(Rect& win) {
   for (; wit != end; ++wit) {
     const BlackboxWindow* const curr = *wit;
 
-    if (curr->isShaded() && screen->getPlaceIgnoreShaded()) continue;
-    if (curr->isMaximizedFull() && screen->getPlaceIgnoreMaximized()) continue;
+    // watch for shaded windows and full-maxed windows
+    if (curr->isShaded()) {
+      if (screen->getPlaceIgnoreShaded()) continue;
+    } else if (curr->isMaximizedFull()) {
+      if (screen->getPlaceIgnoreMaximized()) continue;
+    }
 
     tmp.setRect(curr->frameRect().x(), curr->frameRect().y(),
                 curr->frameRect().width() + screen->getBorderWidth(),
This page took 0.024508 seconds and 4 git commands to generate.