mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 19:29:49 +01:00
fix retrieval of monitor
This commit is contained in:
parent
6ec932d11f
commit
9dbdd66da4
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue