keybindmgr: fix workspace_back_and_forth (#5585)

This commit is contained in:
go0d1uck 2024-04-14 21:54:00 +08:00 committed by GitHub
parent 0634aaeac6
commit 83ab0f2d66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -999,7 +999,7 @@ void CKeybindManager::changeworkspace(std::string args) {
if (BISWORKSPACECURRENT) {
if (*PALLOWWORKSPACECYCLES)
pWorkspaceToChangeTo->rememberPrevWorkspace(PCURRENTWORKSPACE);
else if (!EXPLICITPREVIOUS)
else if (!EXPLICITPREVIOUS && !*PBACKANDFORTH)
pWorkspaceToChangeTo->rememberPrevWorkspace(nullptr);
} else
pWorkspaceToChangeTo->rememberPrevWorkspace(PCURRENTWORKSPACE);