workspaces: deactivate all on monitor switch

This commit is contained in:
vaxerski 2023-04-14 15:08:27 +01:00
parent cf7c5e4dff
commit 8dd0c4fe74

View File

@ -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);