]> Dogcows Code - chaz/openbox/blobdiff - src/Workspace.cc
sync with bb cvs
[chaz/openbox] / src / Workspace.cc
index 91bc141958865f3d706091bd1ee215c4db1840d1..c21f329389340a51dbf3e21e210ae11c60db4f97 100644 (file)
@@ -488,11 +488,14 @@ bool Workspace::smartPlacement(Rect& win, const Rect& availableArea) {
   spaces.push_back(availableArea); //initially the entire screen is free
 
   //Find Free Spaces
-  BlackboxWindowList::iterator wit = windowList.begin(),
-                               end = windowList.end();
+  BlackboxWindowList::const_iterator wit = windowList.begin(),
+    end = windowList.end();
   Rect tmp;
   for (; wit != end; ++wit) {
     const BlackboxWindow* const curr = *wit;
+
+    if (curr->isShaded()) continue;
+
     tmp.setRect(curr->frameRect().x(), curr->frameRect().y(),
                 curr->frameRect().width() + screen->getBorderWidth(),
                 curr->frameRect().height() + screen->getBorderWidth());
This page took 0.021199 seconds and 4 git commands to generate.