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…
Add table
Add a link
Reference in a new issue