diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-22 00:10:26 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-22 00:10:26 +0200 |
| commit | 8f66ddcad0fba99ccb9694342bdc36ef82c1c980 (patch) | |
| tree | 5b5b061c4cb0320ba5fdf9f07b9a6eaec1af7ddd /src/managers/input/Swipe.cpp | |
| parent | 4db1062af68eaf233580dfc5fa0e237e31c4dfc3 (diff) | |
minor changes to swipes
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 90eef672..0d988b49 100644 --- a/src/managers/input/Swipe.cpp +++ b/src/managers/input/Swipe.cpp @@ -122,6 +122,8 @@ void CInputManager::onSwipeUpdate(wlr_pointer_swipe_update_event* e) { if (workspaceIDLeft != workspaceIDRight) { const auto PWORKSPACER = g_pCompositor->getWorkspaceByID(workspaceIDRight); + + PWORKSPACER->m_bForceRendering = true; } PWORKSPACE->m_vRenderOffset.setValueAndWarp(Vector2D(((- m_sActiveSwipe.delta) / *PSWIPEDIST) * m_sActiveSwipe.pMonitor->vecSize.x - m_sActiveSwipe.pMonitor->vecSize.x, 0)); @@ -140,6 +142,8 @@ void CInputManager::onSwipeUpdate(wlr_pointer_swipe_update_event* e) { if (workspaceIDLeft != workspaceIDRight) { const auto PWORKSPACEL = g_pCompositor->getWorkspaceByID(workspaceIDLeft); + + PWORKSPACEL->m_bForceRendering = true; } PWORKSPACE->m_vRenderOffset.setValueAndWarp(Vector2D(((- m_sActiveSwipe.delta) / *PSWIPEDIST) * m_sActiveSwipe.pMonitor->vecSize.x + m_sActiveSwipe.pMonitor->vecSize.x, 0)); |
