Commit c53b2fa3 authored by David Edmundson's avatar David Edmundson
Browse files

Fix crash in Unmanaged without compositing

Without compositing we don't have surfaceItems

BUG: 435322
parent 8bbd186f
......@@ -77,7 +77,9 @@ void Unmanaged::initialize()
// and us setting up damage tracking. If the client wins we won't get a damage event even
// though the window has been painted. To avoid this we mark the whole window as damaged
// and schedule a repaint immediately after creating the damage object.
surfaceItem()->addDamage(surfaceItem()->rect());
if (auto item = surfaceItem()) {
item->addDamage(item->rect());
}
}
bool Unmanaged::track(xcb_window_t w)
......
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