mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-26 12:49:50 +01:00
ignore null ls-es in cleanup
This commit is contained in:
parent
2a5ae435e1
commit
cb6e36d804
1 changed files with 2 additions and 1 deletions
|
@ -194,7 +194,8 @@ void CMonitor::onDisconnect() {
|
|||
|
||||
for (size_t i = 0; i < 4; ++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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue