mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 14:29:48 +01:00
workspaces: deactivate all on monitor switch
This commit is contained in:
parent
cf7c5e4dff
commit
8dd0c4fe74
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue