[scene] Fix segfault in KWin::WindowPixmap::shape (BUG: 426567)
parent
d2051d6517
commit
00ce98b7a2
|
@ -1378,7 +1378,7 @@ qreal WindowPixmap::scale() const
|
||||||
QRegion WindowPixmap::shape() const
|
QRegion WindowPixmap::shape() const
|
||||||
{
|
{
|
||||||
if (subSurface())
|
if (subSurface())
|
||||||
return QRect(QPoint(), surface()->size());
|
return surface() ? QRect(QPoint(), surface()->size()) : QRegion();
|
||||||
return m_window->clientShape();
|
return m_window->clientShape();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue