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
1 changed files with 2 additions and 2 deletions

View File

@ -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