diff options
| author | thejch <66577496+thejch@users.noreply.github.com> | 2024-05-02 06:28:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-02 14:28:51 +0100 |
| commit | d0229d6e1ec8f3047c57c7e641ae87e0271f5874 (patch) | |
| tree | e2d41888ba8948a83327ad4280fe90a4f6b34b94 /src/layout/IHyprLayout.cpp | |
| parent | 56de72f357222beca94e3d4f8152e2523a22c0b3 (diff) | |
layout: limit updates when mouse animate drag is enabled (#5838)
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 053bd5be..dcaab25b 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -356,7 +356,7 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) { canSkipUpdate = std::clamp(MSMONITOR - TIMERDELTA, 0.0, MSMONITOR) > totalMs * 1.0 / m_iMouseMoveEventCount; } - if ((abs(TICKDELTA.x) < 1.f && abs(TICKDELTA.y) < 1.f) || (TIMERDELTA < MSMONITOR && canSkipUpdate && g_pInputManager->dragMode != MBIND_MOVE)) + if ((abs(TICKDELTA.x) < 1.f && abs(TICKDELTA.y) < 1.f) || (TIMERDELTA < MSMONITOR && canSkipUpdate && (g_pInputManager->dragMode != MBIND_MOVE || *PANIMATEMOUSE))) return; TIMER = std::chrono::high_resolution_clock::now(); |
