From 2549f0cc9725919d2d3ef466eff60bd10e1a321e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 10 May 2024 12:03:38 +0100 Subject: [PATCH] layersurface: reset popuphead after unmap fixes #5980 --- src/desktop/LayerSurface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp index c9750dc9..8bff5850 100644 --- a/src/desktop/LayerSurface.cpp +++ b/src/desktop/LayerSurface.cpp @@ -73,8 +73,6 @@ void CLayerSurface::onDestroy() { const auto PMONITOR = g_pCompositor->getMonitorFromID(monitorID); - popupHead.reset(); - if (!g_pCompositor->getMonitorFromID(monitorID)) Debug::log(WARN, "Layersurface destroyed on an invalid monitor (removed?)"); @@ -90,6 +88,8 @@ void CLayerSurface::onDestroy() { } } + popupHead.reset(); + noProcess = true; // rearrange to fix the reserved areas