mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 22:22:00 -07:00
fix crashes on monitor ls remove
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user