mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-16 12:33:48 -07:00
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
This commit is contained in:
committed by
GitHub
parent
2d2a5bebff
commit
55f2daa21e
@@ -241,6 +241,8 @@ void CInputManager::updateWorkspaceSwipe(double delta) {
|
|||||||
(m_activeSwipe.delta < 0 && m_activeSwipe.pWorkspaceBegin->m_id <= workspaceIDLeft)) {
|
(m_activeSwipe.delta < 0 && m_activeSwipe.pWorkspaceBegin->m_id <= workspaceIDLeft)) {
|
||||||
|
|
||||||
m_activeSwipe.delta = 0;
|
m_activeSwipe.delta = 0;
|
||||||
|
g_pHyprRenderer->damageMonitor(m_activeSwipe.pMonitor.lock());
|
||||||
|
m_activeSwipe.pWorkspaceBegin->m_renderOffset->setValueAndWarp(Vector2D(0.0, 0.0));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user