From 8dd0c4fe74da443d373fefc01000a5e946b592b4 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 14 Apr 2023 15:08:27 +0100 Subject: [PATCH] workspaces: deactivate all on monitor switch --- src/helpers/Monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);