[scene] Fix segfault in KWin::WindowPixmap::shape (BUG: 426567)

(cherry picked from commit 00ce98b7a2)
icc-effect-5.20.5
Lewis Lakerink 2020-10-30 23:48:45 +00:00 committed by Vlad Zahorodnii
parent 7465dcc9de
commit 00570eb741
1 changed files with 1 additions and 1 deletions

View File

@ -1284,7 +1284,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();
}