summaryrefslogtreecommitdiff
path: root/src/managers/input/Swipe.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-26 18:38:30 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-26 18:38:30 +0200
commit1455442b9a08cfc72908edaaf8d7dc1abfe9057f (patch)
tree15af86f18d2622959b303faa6e77cd893ad950f5 /src/managers/input/Swipe.cpp
parent71c1ff8ee381de129ca8b35336343243ef03b77c (diff)
fix swipe not cancelling constraints
Diffstat (limited to 'src/managers/input/Swipe.cpp')
-rw-r--r--src/managers/input/Swipe.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/managers/input/Swipe.cpp b/src/managers/input/Swipe.cpp
index bde806d3..7dd3128a 100644
--- a/src/managers/input/Swipe.cpp
+++ b/src/managers/input/Swipe.cpp
@@ -79,6 +79,8 @@ void CInputManager::onSwipeEnd(wlr_pointer_swipe_end_event* e) {
m_sActiveSwipe.pWorkspaceBegin->m_vRenderOffset = Vector2D(m_sActiveSwipe.pMonitor->vecSize.x, 0);
m_sActiveSwipe.pWorkspaceBegin->m_fAlpha.setValueAndWarp(255.f);
+ g_pCompositor->m_sSeat.mouse->currentConstraint = nullptr;
+
Debug::log(LOG, "Ended swipe to the left");
} else {
// switch to right
@@ -93,6 +95,8 @@ void CInputManager::onSwipeEnd(wlr_pointer_swipe_end_event* e) {
m_sActiveSwipe.pWorkspaceBegin->m_vRenderOffset = Vector2D(-m_sActiveSwipe.pMonitor->vecSize.x, 0);
m_sActiveSwipe.pWorkspaceBegin->m_fAlpha.setValueAndWarp(255.f);
+ g_pCompositor->m_sSeat.mouse->currentConstraint = nullptr;
+
Debug::log(LOG, "Ended swipe to the right");
}