From 6f91997f069a92c23886888e51c27d02d50a6a96 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 4 Jul 2023 11:48:13 +0200 Subject: [PATCH] layout: improve time restraints in window drag --- src/layout/IHyprLayout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index a75ce311..582b719a 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -292,7 +292,8 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) { if ((abs(TICKDELTA.x) < 1.f && abs(TICKDELTA.y) < 1.f) || (std::chrono::duration_cast(std::chrono::high_resolution_clock::now() - TIMER).count() < - 1000.0 / g_pHyprRenderer->m_pMostHzMonitor->refreshRate)) + 1000.0 / g_pHyprRenderer->m_pMostHzMonitor->refreshRate && + *PANIMATEMOUSE)) return; TIMER = std::chrono::high_resolution_clock::now();