diff --git a/scene.cpp b/scene.cpp index 3880c11370..79595b81c2 100644 --- a/scene.cpp +++ b/scene.cpp @@ -1378,7 +1378,7 @@ qreal WindowPixmap::scale() const QRegion WindowPixmap::shape() const { if (subSurface()) - return QRect(QPoint(), surface()->size()); + return surface() ? QRect(QPoint(), surface()->size()) : QRegion(); return m_window->clientShape(); }