mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 03:09:48 +01:00
fix crashes on monitor ls remove
This commit is contained in:
parent
85a71d15b6
commit
464dd79246
1 changed files with 1 additions and 0 deletions
|
@ -196,6 +196,7 @@ void CMonitor::onDisconnect() {
|
||||||
for (auto& ls : m_aLayerSurfaceLists[i]) {
|
for (auto& ls : m_aLayerSurfaceLists[i]) {
|
||||||
wlr_layer_surface_v1_destroy(ls->layerSurface);
|
wlr_layer_surface_v1_destroy(ls->layerSurface);
|
||||||
}
|
}
|
||||||
|
m_aLayerSurfaceLists[i].clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!BACKUPMON) {
|
if (!BACKUPMON) {
|
||||||
|
|
Loading…
Reference in a new issue