aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-01-06 16:13:45 +0100
committervaxerski <[email protected]>2023-01-06 16:13:50 +0100
commit464dd79246eedb0da00514b5b9c68a8969b47df0 (patch)
treeb93017d013163dcbaee0bf2d8dff142b5970ca13
parent85a71d15b61a887ce2b2fbc6bbfdcf13ffdbb682 (diff)
downloadHyprland-464dd79246eedb0da00514b5b9c68a8969b47df0.tar.gz
Hyprland-464dd79246eedb0da00514b5b9c68a8969b47df0.zip
fix crashes on monitor ls remove
-rw-r--r--src/helpers/Monitor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index b87a995e..c728aeb4 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -196,6 +196,7 @@ void CMonitor::onDisconnect() {
for (auto& ls : m_aLayerSurfaceLists[i]) {
wlr_layer_surface_v1_destroy(ls->layerSurface);
}
+ m_aLayerSurfaceLists[i].clear();
}
if (!BACKUPMON) {