X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2FWorkspace.cc;h=c21f329389340a51dbf3e21e210ae11c60db4f97;hb=23640740ca6659ee4effb9e5c040900e0bbdeb59;hp=91bc141958865f3d706091bd1ee215c4db1840d1;hpb=12fcb33bfaa03b3c6245d15bfb1809f7facc857f;p=chaz%2Fopenbox diff --git a/src/Workspace.cc b/src/Workspace.cc index 91bc1419..c21f3293 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -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());