summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKimmo Hämäläinen <kimmo.hamalainen@nokia.com>2010-07-22 13:51:42 +0300
committerKimmo Hämäläinen <kimmo.hamalainen@nokia.com>2010-07-22 13:51:42 +0300
commit29e7da8c849f8af67d8342a6aa4e3667e39e5725 (patch)
treebbdca9b4b91dde234b8285f92f3cb84a1c69525b /src
parenta36af0cd88343181fde2c334874193f26b778350 (diff)
Changes: skip unmapped and invisible items in drawItems()
Diffstat (limited to 'src')
-rw-r--r--src/mcompositescene.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mcompositescene.cpp b/src/mcompositescene.cpp
index a179565..65e7f42 100644
--- a/src/mcompositescene.cpp
+++ b/src/mcompositescene.cpp
@@ -105,6 +105,9 @@ void MCompositeScene::drawItems(QPainter *painter, int numItems, QGraphicsItem *
for (int i = numItems - 1; i >= 0; --i) {
MCompositeWindow *cw = (MCompositeWindow *) items[i];
+ if (cw->isDirectRendered() || !cw->isVisible()
+ || !cw->propertyCache()->isMapped())
+ continue;
if (visible.isEmpty())
// nothing below is visible anymore
break;