mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-30 19:51:55 -07:00
workspaces: deactivate all on monitor switch
This commit is contained in:
@@ -509,7 +509,7 @@ void CMonitor::changeWorkspace(CWorkspace* const pWorkspace, bool internal) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// set some flags and fire event
|
// set some flags and fire event
|
||||||
POLDWORKSPACE->setActive(false);
|
g_pCompositor->deactivateAllWLRWorkspaces();
|
||||||
pWorkspace->setActive(true);
|
pWorkspace->setActive(true);
|
||||||
g_pEventManager->postEvent(SHyprIPCEvent{"workspace", pWorkspace->m_szName});
|
g_pEventManager->postEvent(SHyprIPCEvent{"workspace", pWorkspace->m_szName});
|
||||||
EMIT_HOOK_EVENT("workspace", pWorkspace);
|
EMIT_HOOK_EVENT("workspace", pWorkspace);
|
||||||
|
Reference in New Issue
Block a user