mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 06:25:59 +01:00
fix focusmonitor with named workspaces
This commit is contained in:
parent
5c911df351
commit
e4d494aed4
1 changed files with 6 additions and 1 deletions
|
@ -558,6 +558,11 @@ void CKeybindManager::focusMonitor(std::string arg) {
|
||||||
if (isDirection(arg)) {
|
if (isDirection(arg)) {
|
||||||
const auto PMONITOR = g_pCompositor->getMonitorInDirection(arg[0]);
|
const auto PMONITOR = g_pCompositor->getMonitorInDirection(arg[0]);
|
||||||
if (PMONITOR) {
|
if (PMONITOR) {
|
||||||
|
if (PMONITOR->activeWorkspace < 0) {
|
||||||
|
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(PMONITOR->activeWorkspace);
|
||||||
|
changeworkspace("name:" + PWORKSPACE->m_szName);
|
||||||
|
}
|
||||||
|
else
|
||||||
changeworkspace(std::to_string(PMONITOR->activeWorkspace));
|
changeworkspace(std::to_string(PMONITOR->activeWorkspace));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue