diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-28 18:38:49 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-28 18:38:49 +0200 |
| commit | e4d494aed4494b31adfe893453d1644a6ccb6439 (patch) | |
| tree | cf468f591068d5c7795a1b79208ac8214261c3ea /src/managers/KeybindManager.cpp | |
| parent | 5c911df35182b7e429636e5f7c6126cbbc8ba919 (diff) | |
fix focusmonitor with named workspaces
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 7b7d488c..bd225c63 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -558,7 +558,12 @@ void CKeybindManager::focusMonitor(std::string arg) { if (isDirection(arg)) { const auto PMONITOR = g_pCompositor->getMonitorInDirection(arg[0]); if (PMONITOR) { - changeworkspace(std::to_string(PMONITOR->activeWorkspace)); + if (PMONITOR->activeWorkspace < 0) { + const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(PMONITOR->activeWorkspace); + changeworkspace("name:" + PWORKSPACE->m_szName); + } + else + changeworkspace(std::to_string(PMONITOR->activeWorkspace)); return; } } else { |
