InWorkspace() was not in balance with SubsetWorkspaces() - this fixes bug #266.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16638 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-03-08 12:31:04 +00:00
parent abe0393b82
commit 2c9acb6697

View File

@ -1298,7 +1298,7 @@ WindowLayer::InWorkspace(int32 index) const
|| fFeel == B_FLOATING_SUBSET_WINDOW_FEEL) {
for (int32 i = 0; i < fSubsets.CountItems(); i++) {
WindowLayer* window = fSubsets.ItemAt(i);
if (window->InWorkspace(index))
if (!window->IsHidden() && window->InWorkspace(index))
return true;
}
}