diff options
author | vaxerski <[email protected]> | 2022-10-20 17:52:17 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-10-20 17:52:17 +0100 |
commit | dada872981211cfeccf5e445c7c1446c9b466a21 (patch) | |
tree | ea68662fd7169224fb178fcba4a48805ef4c4df8 /src/managers/input/Swipe.cpp | |
parent | 1eec5161bd7eb5b83ff267e2bb9221d586017def (diff) | |
download | Hyprland-dada872981211cfeccf5e445c7c1446c9b466a21.tar.gz Hyprland-dada872981211cfeccf5e445c7c1446c9b466a21.zip |
minor swipe on new fixes
Diffstat (limited to 'src/managers/input/Swipe.cpp')
-rw-r--r-- | src/managers/input/Swipe.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/managers/input/Swipe.cpp b/src/managers/input/Swipe.cpp index 8e2c58b3..619f446b 100644 --- a/src/managers/input/Swipe.cpp +++ b/src/managers/input/Swipe.cpp @@ -218,10 +218,14 @@ void CInputManager::onSwipeUpdate(wlr_pointer_swipe_update_event* e) { } else { if (workspaceIDRight < m_sActiveSwipe.pWorkspaceBegin->m_iID) { if (*PSWIPENEW) { + g_pHyprRenderer->damageMonitor(m_sActiveSwipe.pMonitor); + if (VERTANIMS) m_sActiveSwipe.pWorkspaceBegin->m_vRenderOffset.setValueAndWarp(Vector2D(0, ((-m_sActiveSwipe.delta) / *PSWIPEDIST) * m_sActiveSwipe.pMonitor->vecSize.y)); else m_sActiveSwipe.pWorkspaceBegin->m_vRenderOffset.setValueAndWarp(Vector2D(((-m_sActiveSwipe.delta) / *PSWIPEDIST) * m_sActiveSwipe.pMonitor->vecSize.x, 0)); + + g_pCompositor->updateWorkspaceWindowDecos(m_sActiveSwipe.pWorkspaceBegin->m_iID); return; } m_sActiveSwipe.delta = 0; |