From b573c2012587a4a4d84a306a157db77bf4c3566e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 10 Apr 2024 17:21:39 +0100 Subject: [PATCH] monitor: add workspace null check to visible flag ref #5524 --- src/helpers/Monitor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 83d0db0f..196492c1 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -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)