Commit 00ce98b7 authored by Lewis Lakerink's avatar Lewis Lakerink Committed by Vlad Zahorodnii
Browse files

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

parent d2051d65
......@@ -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();
}
......
Markdown is supported
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