diff options
| author | Florent Charpentier <114689807+C0Florent@users.noreply.github.com> | 2025-07-24 04:06:28 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-23 20:06:28 +0200 |
| commit | 55f2daa21ec6193b8b6f7a6a037534e7db34ee42 (patch) | |
| tree | dac6a835410f8132393c8f7029dee5a45fd36538 /src/managers/input/Swipe.cpp | |
| parent | 2d2a5bebff72c73cd27db3b9e954b8fa2a7623e8 (diff) | |
swipe: fix workspace swipe not rendering last frame if target ws is on edge (#11184)
Fix for a weird behaviour that happens when swipe is only valid in 1
direction (i.e. from ws 1)
When you start a swipe from the only direction possible, then swipe back
(without releasing), the last frame where the delta is reset to 0 was
not being rendered
Diffstat (limited to 'src/managers/input/Swipe.cpp')
| -rw-r--r-- | src/managers/input/Swipe.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/managers/input/Swipe.cpp b/src/managers/input/Swipe.cpp index f957c96e..d1a94cde 100644 --- a/src/managers/input/Swipe.cpp +++ b/src/managers/input/Swipe.cpp @@ -241,6 +241,8 @@ void CInputManager::updateWorkspaceSwipe(double delta) { (m_activeSwipe.delta < 0 && m_activeSwipe.pWorkspaceBegin->m_id <= workspaceIDLeft)) { m_activeSwipe.delta = 0; + g_pHyprRenderer->damageMonitor(m_activeSwipe.pMonitor.lock()); + m_activeSwipe.pWorkspaceBegin->m_renderOffset->setValueAndWarp(Vector2D(0.0, 0.0)); return; } |
