diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-11-02 10:01:13 +0000 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-11-02 10:01:13 +0000 |
| commit | 603a90886fc199936f5323f8ec09bf91bfbaacf7 (patch) | |
| tree | b342e9b202656b507d756c7221d5891f50c05dcf /src/managers/input/Swipe.cpp | |
| parent | 95bbac8791cd0dbd62fc18974a5ba3b91cf61a04 (diff) | |
fix swipe on 2 detached workspaces
Diffstat (limited to 'src/managers/input/Swipe.cpp')
| -rw-r--r-- | src/managers/input/Swipe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/Swipe.cpp b/src/managers/input/Swipe.cpp index 12997896..1d462ccf 100644 --- a/src/managers/input/Swipe.cpp +++ b/src/managers/input/Swipe.cpp @@ -51,7 +51,7 @@ void CInputManager::onSwipeEnd(wlr_pointer_swipe_end_event* e) { auto workspaceIDLeft = getWorkspaceIDFromString("m-1", wsname); auto workspaceIDRight = getWorkspaceIDFromString("m+1", wsname); - if ((workspaceIDRight <= m_sActiveSwipe.pWorkspaceBegin->m_iID || workspaceIDRight == workspaceIDLeft) && *PSWIPENEW) { + if ((workspaceIDRight <= m_sActiveSwipe.pWorkspaceBegin->m_iID || (workspaceIDRight == workspaceIDLeft && workspaceIDLeft == m_sActiveSwipe.pWorkspaceBegin->m_iID)) && *PSWIPENEW) { workspaceIDRight = m_sActiveSwipe.pWorkspaceBegin->m_iID > 0 ? m_sActiveSwipe.pWorkspaceBegin->m_iID + 1 : 1; } |
