keybinds: focusWorkspaceOnCurrentMonitor: use focused monitor instead (#4625)

This commit is contained in:
Epilepsy Gatherings 2024-02-05 17:36:22 -05:00 committed by GitHub
parent 1fd82e37a7
commit 8a6e428d32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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!");