From 8a6e428d32f170737110a2184c4d59c98f317422 Mon Sep 17 00:00:00 2001 From: Epilepsy Gatherings <73647246+phonetic112@users.noreply.github.com> Date: Mon, 5 Feb 2024 17:36:22 -0500 Subject: [PATCH] keybinds: focusWorkspaceOnCurrentMonitor: use focused monitor instead (#4625) --- src/managers/KeybindManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 7f6c06ae..a5419e67 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -1512,7 +1512,7 @@ void CKeybindManager::focusWorkspaceOnCurrentMonitor(std::string args) { return; } - const auto PCURRMONITOR = g_pCompositor->getMonitorFromCursor(); + const auto PCURRMONITOR = g_pCompositor->m_pLastMonitor; if (!PCURRMONITOR) { Debug::log(ERR, "focusWorkspaceOnCurrentMonitor monitor doesn't exist!");