From 8e5985d70e3370bc2c6155b58488499d5f6f067d Mon Sep 17 00:00:00 2001 From: vaxerski Date: Tue, 9 Aug 2022 20:36:21 +0200 Subject: clean up unconstraining logic --- src/managers/input/Swipe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/managers/input/Swipe.cpp') diff --git a/src/managers/input/Swipe.cpp b/src/managers/input/Swipe.cpp index 7dd3128a..195882c3 100644 --- a/src/managers/input/Swipe.cpp +++ b/src/managers/input/Swipe.cpp @@ -79,7 +79,7 @@ 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; + g_pInputManager->unconstrainMouse(); Debug::log(LOG, "Ended swipe to the left"); } else { @@ -95,7 +95,7 @@ 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; + g_pInputManager->unconstrainMouse(); Debug::log(LOG, "Ended swipe to the right"); } -- cgit v1.2.3