mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 03:05:59 +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,6 +194,7 @@ void CMonitor::onDisconnect() {
|
|||
|
||||
for (size_t i = 0; i < 4; ++i) {
|
||||
for (auto& ls : m_aLayerSurfaceLayers[i]) {
|
||||
if (ls->layerSurface && !ls->fadingOut)
|
||||
wlr_layer_surface_v1_destroy(ls->layerSurface);
|
||||
}
|
||||
m_aLayerSurfaceLayers[i].clear();
|
||||
|
|
Loading…
Reference in a new issue