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) {
|
if (PLASTWINDOW->m_iMonitorID != PWINDOWTOCHANGETO->m_iMonitorID) {
|
||||||
// event
|
// event
|
||||||
const auto PNEWMON = g_pCompositor->getMonitorFromID(PWINDOWTOCHANGETO->m_iMonitorID);
|
const auto PNEWMON = g_pCompositor->getMonitorFromID(PWINDOWTOCHANGETO->m_iMonitorID);
|
||||||
|
const auto PNEWWORKSPACE = g_pCompositor->getWorkspaceByID(PWINDOWTOCHANGETO->m_iWorkspaceID);
|
||||||
|
|
||||||
g_pCompositor->setActiveMonitor(PNEWMON);
|
g_pCompositor->setActiveMonitor(PNEWMON);
|
||||||
|
|
||||||
|
g_pCompositor->deactivateAllWLRWorkspaces(PNEWWORKSPACE->m_pWlrHandle);
|
||||||
|
PNEWWORKSPACE->setActive(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue