monitors: remove from monitors on unsafe

This commit is contained in:
vaxerski 2023-03-16 16:33:27 +00:00
parent e77ebec629
commit 4b52c1e68f

View file

@ -214,6 +214,8 @@ void CMonitor::onDisconnect() {
g_pCompositor->m_bUnsafeState = true; g_pCompositor->m_bUnsafeState = true;
std::erase_if(g_pCompositor->m_vMonitors, [&](std::shared_ptr<CMonitor>& el) { return el.get() == this; });
return; return;
} }