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;
}
activeWorkspace->m_bVisible = false;
if (activeWorkspace)
activeWorkspace->m_bVisible = false;
activeWorkspace.reset();
if (!destroy)