monitor: add workspace null check to visible flag

ref #5524
This commit is contained in:
Vaxry 2024-04-10 17:21:39 +01:00
parent 303b9956b2
commit b573c20125

View file

@ -302,7 +302,8 @@ void CMonitor::onDisconnect(bool destroy) {
g_pCompositor->m_pLastMonitor = nullptr; g_pCompositor->m_pLastMonitor = nullptr;
} }
activeWorkspace->m_bVisible = false; if (activeWorkspace)
activeWorkspace->m_bVisible = false;
activeWorkspace.reset(); activeWorkspace.reset();
if (!destroy) if (!destroy)