layersurface: reset popuphead after unmap

fixes #5980
This commit is contained in:
Vaxry 2024-05-10 12:03:38 +01:00
parent 3374229118
commit 2549f0cc97

View file

@ -73,8 +73,6 @@ void CLayerSurface::onDestroy() {
const auto PMONITOR = g_pCompositor->getMonitorFromID(monitorID); const auto PMONITOR = g_pCompositor->getMonitorFromID(monitorID);
popupHead.reset();
if (!g_pCompositor->getMonitorFromID(monitorID)) if (!g_pCompositor->getMonitorFromID(monitorID))
Debug::log(WARN, "Layersurface destroyed on an invalid monitor (removed?)"); Debug::log(WARN, "Layersurface destroyed on an invalid monitor (removed?)");
@ -90,6 +88,8 @@ void CLayerSurface::onDestroy() {
} }
} }
popupHead.reset();
noProcess = true; noProcess = true;
// rearrange to fix the reserved areas // rearrange to fix the reserved areas