From 23640740ca6659ee4effb9e5c040900e0bbdeb59 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 30 May 2002 04:35:22 +0000 Subject: sync with bb cvs --- src/Workspace.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/Workspace.cc') 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()); -- cgit v1.2.3