From 8f9c6ce92f1d10b88c2912ac2e1906ec52d98fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 1 Apr 2016 09:22:32 +0200 Subject: [PATCH] Use new surface() method in WindowPixmap::updateBuffer --- scene.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scene.cpp b/scene.cpp index 5cef081df2..f908eceea7 100644 --- a/scene.cpp +++ b/scene.cpp @@ -1018,13 +1018,7 @@ bool WindowPixmap::isValid() const void WindowPixmap::updateBuffer() { using namespace KWayland::Server; - SurfaceInterface *s = nullptr; - if (!m_subSurface.isNull()) { - s = m_subSurface->surface().data(); - } else { - s = toplevel()->surface(); - } - if (s) { + if (SurfaceInterface *s = surface()) { QVector oldTree = m_children; QVector children; using namespace KWayland::Server;