Commit 00570eb7 authored by Lewis Lakerink's avatar Lewis Lakerink Committed by Vlad Zahorodnii
Browse files

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

(cherry picked from commit 00ce98b7)
parent 7465dcc9
......@@ -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();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment