mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 09:45:59 +01:00
monitors: remove from monitors on unsafe
This commit is contained in:
parent
e77ebec629
commit
4b52c1e68f
1 changed files with 2 additions and 0 deletions
|
@ -214,6 +214,8 @@ void CMonitor::onDisconnect() {
|
|||
|
||||
g_pCompositor->m_bUnsafeState = true;
|
||||
|
||||
std::erase_if(g_pCompositor->m_vMonitors, [&](std::shared_ptr<CMonitor>& el) { return el.get() == this; });
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue