aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCharles Taylor <[email protected]>2022-08-21 22:11:40 +1000
committerCharles Taylor <[email protected]>2022-08-21 22:11:40 +1000
commit9dbdd66da417eb2316387f3af078349c50bc2929 (patch)
tree51cbb6a5fd12399f4a6d9a1dd9546bef878a097a
parent6ec932d11fcc490f3d3f8c544af8fa1a5c8ef4f7 (diff)
downloadHyprland-9dbdd66da417eb2316387f3af078349c50bc2929.tar.gz
Hyprland-9dbdd66da417eb2316387f3af078349c50bc2929.zip
fix retrieval of monitor
-rw-r--r--src/managers/KeybindManager.cpp2
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) {