Skip to content

Commit 55f2daa

Browse files
authored
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
1 parent 2d2a5be commit 55f2daa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/managers/input/Swipe.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ void CInputManager::updateWorkspaceSwipe(double delta) {
241241
(m_activeSwipe.delta < 0 && m_activeSwipe.pWorkspaceBegin->m_id <= workspaceIDLeft)) {
242242

243243
m_activeSwipe.delta = 0;
244+
g_pHyprRenderer->damageMonitor(m_activeSwipe.pMonitor.lock());
245+
m_activeSwipe.pWorkspaceBegin->m_renderOffset->setValueAndWarp(Vector2D(0.0, 0.0));
244246
return;
245247
}
246248

0 commit comments

Comments
 (0)