aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-26 00:19:57 +0200
committervaxerski <[email protected]>2022-08-26 00:19:57 +0200
commit0eb86f4b0d30e4454ac48ee79973f25b8f8291da (patch)
treea84cf3fe1458b479c1e30aa5bb348ebd9aa7f809
parent7b01c3d028ee5e6423b65388966162a50813b83b (diff)
downloadHyprland-0eb86f4b0d30e4454ac48ee79973f25b8f8291da.tar.gz
Hyprland-0eb86f4b0d30e4454ac48ee79973f25b8f8291da.zip
fix silent workspaces with back and forth
-rw-r--r--src/managers/KeybindManager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index ec4755a8..e725785b 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -551,7 +551,8 @@ void CKeybindManager::changeworkspace(std::string args) {
static auto *const PBACKANDFORTH = &g_pConfigManager->getConfigValuePtr("binds:workspace_back_and_forth")->intValue;
if (*PBACKANDFORTH
&& PCURRENTWORKSPACE->m_iID == workspaceToChangeTo
- && PCURRENTWORKSPACE->m_iPrevWorkspaceID != -1) {
+ && PCURRENTWORKSPACE->m_iPrevWorkspaceID != -1
+ && !internal) {
workspaceToChangeTo = PCURRENTWORKSPACE->m_iPrevWorkspaceID;
isSwitchingToPrevious = true;
@@ -576,7 +577,7 @@ void CKeybindManager::changeworkspace(std::string args) {
const auto PWORKSPACETOCHANGETO = g_pCompositor->getWorkspaceByID(workspaceToChangeTo);
- if (!isSwitchingToPrevious)
+ if (!isSwitchingToPrevious && !internal)
// Remember previous workspace.
PWORKSPACETOCHANGETO->m_iPrevWorkspaceID = g_pCompositor->m_pLastMonitor->activeWorkspace;