mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 21:25:58 +01:00
keybinds: focusWorkspaceOnCurrentMonitor: use focused monitor instead (#4625)
This commit is contained in:
parent
1fd82e37a7
commit
8a6e428d32
1 changed files with 1 additions and 1 deletions
|
@ -1512,7 +1512,7 @@ void CKeybindManager::focusWorkspaceOnCurrentMonitor(std::string args) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto PCURRMONITOR = g_pCompositor->getMonitorFromCursor();
|
const auto PCURRMONITOR = g_pCompositor->m_pLastMonitor;
|
||||||
|
|
||||||
if (!PCURRMONITOR) {
|
if (!PCURRMONITOR) {
|
||||||
Debug::log(ERR, "focusWorkspaceOnCurrentMonitor monitor doesn't exist!");
|
Debug::log(ERR, "focusWorkspaceOnCurrentMonitor monitor doesn't exist!");
|
||||||
|
|
Loading…
Reference in a new issue