diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 08883ba45..3fa2ebb8d 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -509,7 +509,7 @@ void CMonitor::changeWorkspace(CWorkspace* const pWorkspace, bool internal) { } // set some flags and fire event - POLDWORKSPACE->setActive(false); + g_pCompositor->deactivateAllWLRWorkspaces(); pWorkspace->setActive(true); g_pEventManager->postEvent(SHyprIPCEvent{"workspace", pWorkspace->m_szName}); EMIT_HOOK_EVENT("workspace", pWorkspace);