mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 21:51:55 -07:00
ignore null ls-es in cleanup
This commit is contained in:
@@ -194,7 +194,8 @@ void CMonitor::onDisconnect() {
|
|||||||
|
|
||||||
for (size_t i = 0; i < 4; ++i) {
|
for (size_t i = 0; i < 4; ++i) {
|
||||||
for (auto& ls : m_aLayerSurfaceLayers[i]) {
|
for (auto& ls : m_aLayerSurfaceLayers[i]) {
|
||||||
wlr_layer_surface_v1_destroy(ls->layerSurface);
|
if (ls->layerSurface && !ls->fadingOut)
|
||||||
|
wlr_layer_surface_v1_destroy(ls->layerSurface);
|
||||||
}
|
}
|
||||||
m_aLayerSurfaceLayers[i].clear();
|
m_aLayerSurfaceLayers[i].clear();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user