diff options
author | Vaxry <[email protected]> | 2024-05-10 12:03:38 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-05-10 12:03:38 +0100 |
commit | 2549f0cc9725919d2d3ef466eff60bd10e1a321e (patch) | |
tree | a68f8a4906b40e18dd876c89dbd4d21bb5d22c70 | |
parent | 337422911895bb55099e00208bff929651dcb5d2 (diff) | |
download | Hyprland-2549f0cc9725919d2d3ef466eff60bd10e1a321e.tar.gz Hyprland-2549f0cc9725919d2d3ef466eff60bd10e1a321e.zip |
layersurface: reset popuphead after unmap
fixes #5980
-rw-r--r-- | src/desktop/LayerSurface.cpp | 4 |
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 |