diff options
| author | Charles Taylor <taylorc822@gmail.com> | 2022-08-21 22:11:40 +1000 |
|---|---|---|
| committer | Charles Taylor <taylorc822@gmail.com> | 2022-08-21 22:11:40 +1000 |
| commit | 9dbdd66da417eb2316387f3af078349c50bc2929 (patch) | |
| tree | 51cbb6a5fd12399f4a6d9a1dd9546bef878a097a /src/managers/KeybindManager.cpp | |
| parent | 6ec932d11fcc490f3d3f8c544af8fa1a5c8ef4f7 (diff) | |
fix retrieval of monitor
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index ddf65b42..3d821d14 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -465,7 +465,7 @@ void CKeybindManager::changeworkspace(std::string args) { workspaceName = PWORKSPACE->m_szName; } else if (args.find("previous") == 0) { const auto PCURRENTWORKSPACE = g_pCompositor->getWorkspaceByID( - g_pCompositor->getMonitorFromCursor()->activeWorkspace); + g_pCompositor->m_pLastMonitor->activeWorkspace); // Do nothing if there's no previous workspace, otherwise switch to it. if (PCURRENTWORKSPACE->m_iPrevWorkspaceID == -1) { |
