diff options
author | vaxerski <[email protected]> | 2022-10-20 15:47:35 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-10-20 15:47:35 +0100 |
commit | 1eec5161bd7eb5b83ff267e2bb9221d586017def (patch) | |
tree | 4e1a71ff4e37bd5f5a0cb688e178502d6a4c6947 /src/managers/input/Swipe.cpp | |
parent | 53c3644c2957da45cf8274004f38619644dc5f5b (diff) | |
download | Hyprland-1eec5161bd7eb5b83ff267e2bb9221d586017def.tar.gz Hyprland-1eec5161bd7eb5b83ff267e2bb9221d586017def.zip |
minor fix for swipes from empty 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 6f6a718b..8e2c58b3 100644 --- a/src/managers/input/Swipe.cpp +++ b/src/managers/input/Swipe.cpp @@ -183,7 +183,7 @@ void CInputManager::onSwipeUpdate(wlr_pointer_swipe_update_event* e) { m_sActiveSwipe.delta = std::clamp(m_sActiveSwipe.delta, (double)-*PSWIPEDIST, (double)*PSWIPEDIST); - if (((m_sActiveSwipe.pWorkspaceBegin->m_iID == workspaceIDLeft || m_sActiveSwipe.pWorkspaceBegin->m_iID == workspaceIDRight) && *PSWIPENEW && (m_sActiveSwipe.delta < 0)) || (m_sActiveSwipe.delta > 0 && g_pCompositor->getWindowsOnWorkspace(m_sActiveSwipe.pWorkspaceBegin->m_iID) == 0)) { + if (((m_sActiveSwipe.pWorkspaceBegin->m_iID == workspaceIDLeft || m_sActiveSwipe.pWorkspaceBegin->m_iID == workspaceIDRight) && *PSWIPENEW && (m_sActiveSwipe.delta < 0)) || (m_sActiveSwipe.delta > 0 && g_pCompositor->getWindowsOnWorkspace(m_sActiveSwipe.pWorkspaceBegin->m_iID) == 0 && workspaceIDRight <= m_sActiveSwipe.pWorkspaceBegin->m_iID)) { m_sActiveSwipe.delta = 0; return; } |