mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-31 04:01:56 -07:00
keybinds: focusWorkspaceOnCurrentMonitor: use focused monitor instead (#4625)
This commit is contained in:
committed by
GitHub
parent
1fd82e37a7
commit
8a6e428d32
@@ -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!");
|
||||
|
Reference in New Issue
Block a user