scene/workspacescene: also check for occlusion of the parent item
Somehow this was dropped in a rebase of def0bde5e9
This commit is contained in:
parent
aa88904b53
commit
874189f11b
1 changed files with 3 additions and 0 deletions
|
@ -169,6 +169,9 @@ static bool addCandidates(SurfaceItem *item, QList<SurfaceItem *> &candidates, s
|
|||
if (candidates.size() >= maxCount || item->hasEffects()) {
|
||||
return false;
|
||||
}
|
||||
if (occluded.contains(item->mapToScene(item->boundingRect()).toAlignedRect())) {
|
||||
return true;
|
||||
}
|
||||
candidates.push_back(item);
|
||||
occluded += item->mapToScene(item->opaque());
|
||||
for (; it != children.rend(); it++) {
|
||||
|
|
Loading…
Reference in a new issue