From 77091f7fcb738f479d356df249011e4fe8e9466c Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 7 May 2021 17:49:09 +0300 Subject: [PATCH] Remove manual discardWindowPixmap() calls in InternalClient SurfaceItemInternal will discard the current pixmap if the buffer size changes. Also, one of the goal of the scene redesign is to keep things such as this out of Toplevel subclasses. --- src/internal_client.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/internal_client.cpp b/src/internal_client.cpp index 945bae411f..41359d0267 100644 --- a/src/internal_client.cpp +++ b/src/internal_client.cpp @@ -373,10 +373,7 @@ void InternalClient::present(const QSharedPointer fbo) commitGeometry(QRect(pos(), clientSizeToFrameSize(bufferSize))); markAsMapped(); - if (m_internalFBO != fbo) { - discardWindowPixmap(); - m_internalFBO = fbo; - } + m_internalFBO = fbo; setDepth(32); surfaceItem()->addDamage(surfaceItem()->rect()); @@ -391,10 +388,6 @@ void InternalClient::present(const QImage &image, const QRegion &damage) commitGeometry(QRect(pos(), clientSizeToFrameSize(bufferSize))); markAsMapped(); - if (m_internalImage.size() != image.size()) { - discardWindowPixmap(); - } - m_internalImage = image; setDepth(32);