Commit 42126a25 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

scripting: Guard against nullptr m_client in WindowThumbnailItem

BUG: 443765

(cherry picked from commit f1e99e97)
parent 5df7f620
......@@ -335,6 +335,9 @@ static QRectF centeredSize(const QRectF &boundingRect, const QSizeF &size)
QRectF WindowThumbnailItem::paintedRect() const
if (!m_client) {
return QRectF();
if (!m_offscreenTexture) {
const QSizeF iconSize = m_client->icon().actualSize(window(), boundingRect().size().toSize());
return centeredSize(boundingRect(), iconSize);
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