mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 16:25:58 +01:00
movefocus: Set new workspace as active when focusing new monitor (#1640)
This commit is contained in:
parent
e302724847
commit
3bfaeacf7d
1 changed files with 4 additions and 0 deletions
|
@ -1132,8 +1132,12 @@ void CKeybindManager::moveFocusTo(std::string args) {
|
|||
if (PLASTWINDOW->m_iMonitorID != PWINDOWTOCHANGETO->m_iMonitorID) {
|
||||
// event
|
||||
const auto PNEWMON = g_pCompositor->getMonitorFromID(PWINDOWTOCHANGETO->m_iMonitorID);
|
||||
const auto PNEWWORKSPACE = g_pCompositor->getWorkspaceByID(PWINDOWTOCHANGETO->m_iWorkspaceID);
|
||||
|
||||
g_pCompositor->setActiveMonitor(PNEWMON);
|
||||
|
||||
g_pCompositor->deactivateAllWLRWorkspaces(PNEWWORKSPACE->m_pWlrHandle);
|
||||
PNEWWORKSPACE->setActive(true);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue