wayland: Avoid updating outputs of a closed window

BUG: 467954
This commit is contained in:
Vlad Zahorodnii 2023-03-30 18:49:31 +03:00
parent 66495f9c79
commit 2c12a6a417

View file

@ -156,6 +156,9 @@ bool WaylandWindow::belongsToDesktop() const
void WaylandWindow::updateClientOutputs()
{
if (isDeleted()) {
return;
}
surface()->setOutputs(waylandServer()->display()->outputsIntersecting(frameGeometry().toAlignedRect()));
if (output()) {
surface()->setPreferredScale(output()->scale());