From cc670ec4364c1cf91c7221389ff47007198317f0 Mon Sep 17 00:00:00 2001 From: Martin Zielinski Date: Tue, 21 Jun 2011 13:29:49 +0200 Subject: [PATCH] Call update only if the item has the ItemHasContent Flag set --- src/qt-compositor/compositor_api/waylandsurfaceitem.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/qt-compositor/compositor_api/waylandsurfaceitem.cpp b/src/qt-compositor/compositor_api/waylandsurfaceitem.cpp index cf930e1..0a41c55 100644 --- a/src/qt-compositor/compositor_api/waylandsurfaceitem.cpp +++ b/src/qt-compositor/compositor_api/waylandsurfaceitem.cpp @@ -219,5 +219,8 @@ QSGNode *WaylandSurfaceItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeDa void WaylandSurfaceItem::setUseTextureAlpha(bool useTextureAlpha) { m_useTextureAlpha = useTextureAlpha; - update(); + + if ((flags() & ItemHasContents) != 0) { + update(); + } } -- 2.7.4