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

icc-effect-5.26.4
Lewis Lakerink 2020-10-31 10:48:45 +11:00 committed by Vlad Zahorodnii
parent d2051d6517
commit 00ce98b7a2
1 changed files with 1 additions and 1 deletions

View File

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