Fix crash in Unmanaged without compositing
Without compositing we don't have surfaceItems BUG: 435322
This commit is contained in:
parent
8bbd186f8e
commit
c53b2fa3c5
1 changed files with 3 additions and 1 deletions
|
@ -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
|
// 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
|
// 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.
|
// 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)
|
bool Unmanaged::track(xcb_window_t w)
|
||||||
|
|
Loading…
Reference in a new issue