From 2c12a6a4172fe2b59aff4373dd699149bce82ff3 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 30 Mar 2023 18:49:31 +0300 Subject: [PATCH] wayland: Avoid updating outputs of a closed window BUG: 467954 --- src/waylandwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/waylandwindow.cpp b/src/waylandwindow.cpp index 5cc991d8d2..41352a4398 100644 --- a/src/waylandwindow.cpp +++ b/src/waylandwindow.cpp @@ -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());