diff options
author | vaxerski <[email protected]> | 2023-01-06 16:13:45 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-01-06 16:13:50 +0100 |
commit | 464dd79246eedb0da00514b5b9c68a8969b47df0 (patch) | |
tree | b93017d013163dcbaee0bf2d8dff142b5970ca13 | |
parent | 85a71d15b61a887ce2b2fbc6bbfdcf13ffdbb682 (diff) | |
download | Hyprland-464dd79246eedb0da00514b5b9c68a8969b47df0.tar.gz Hyprland-464dd79246eedb0da00514b5b9c68a8969b47df0.zip |
fix crashes on monitor ls remove
-rw-r--r-- | src/helpers/Monitor.cpp | 1 |
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) { |