aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-05-10 12:03:38 +0100
committerVaxry <[email protected]>2024-05-10 12:03:38 +0100
commit2549f0cc9725919d2d3ef466eff60bd10e1a321e (patch)
treea68f8a4906b40e18dd876c89dbd4d21bb5d22c70
parent337422911895bb55099e00208bff929651dcb5d2 (diff)
downloadHyprland-2549f0cc9725919d2d3ef466eff60bd10e1a321e.tar.gz
Hyprland-2549f0cc9725919d2d3ef466eff60bd10e1a321e.zip
layersurface: reset popuphead after unmap
fixes #5980
-rw-r--r--src/desktop/LayerSurface.cpp4
1 files 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