diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-08-09 20:36:21 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-08-09 20:36:21 +0200 |
| commit | 8e5985d70e3370bc2c6155b58488499d5f6f067d (patch) | |
| tree | 8bba4fb7e80693b0dc71a3c6dcf796910497dee1 /src/managers/input/Swipe.cpp | |
| parent | 9255a4d2ffee15cf6cd54d92a52837fc9f253d5c (diff) | |
clean up unconstraining logic
Diffstat (limited to 'src/managers/input/Swipe.cpp')
| -rw-r--r-- | src/managers/input/Swipe.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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"); } |
