mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-18 05:23:47 -07:00
keybindmgr: fix workspace_back_and_forth (#5585)
This commit is contained in:
@@ -999,7 +999,7 @@ void CKeybindManager::changeworkspace(std::string args) {
|
|||||||
if (BISWORKSPACECURRENT) {
|
if (BISWORKSPACECURRENT) {
|
||||||
if (*PALLOWWORKSPACECYCLES)
|
if (*PALLOWWORKSPACECYCLES)
|
||||||
pWorkspaceToChangeTo->rememberPrevWorkspace(PCURRENTWORKSPACE);
|
pWorkspaceToChangeTo->rememberPrevWorkspace(PCURRENTWORKSPACE);
|
||||||
else if (!EXPLICITPREVIOUS)
|
else if (!EXPLICITPREVIOUS && !*PBACKANDFORTH)
|
||||||
pWorkspaceToChangeTo->rememberPrevWorkspace(nullptr);
|
pWorkspaceToChangeTo->rememberPrevWorkspace(nullptr);
|
||||||
} else
|
} else
|
||||||
pWorkspaceToChangeTo->rememberPrevWorkspace(PCURRENTWORKSPACE);
|
pWorkspaceToChangeTo->rememberPrevWorkspace(PCURRENTWORKSPACE);
|
||||||
|
Reference in New Issue
Block a user