summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/manager-lib/inprocesssurfaceitem.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/manager-lib/inprocesssurfaceitem.cpp b/src/manager-lib/inprocesssurfaceitem.cpp
index 07bcb6ed..3704b2d2 100644
--- a/src/manager-lib/inprocesssurfaceitem.cpp
+++ b/src/manager-lib/inprocesssurfaceitem.cpp
@@ -138,6 +138,9 @@ bool InProcessSurfaceItem::visibleClientSide() const
QSGNode *InProcessSurfaceItem::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeData *)
{
+ if (m_color.alpha() == 0)
+ return oldNode; // no need to render fully transparent node
+
QSGSimpleRectNode *node = static_cast<QSGSimpleRectNode *>(oldNode);
if (!node) {
node = new QSGSimpleRectNode(clipRect(), m_color);