diff options
| author | phonetic112 <73647246+phonetic112@users.noreply.github.com> | 2024-03-19 12:03:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-19 16:03:31 +0000 |
| commit | bcba3951f45f11245d424274130eb3a0ac790d93 (patch) | |
| tree | 0a67a88ef26bfd6ef58ad6b5431adc4e5b6c34b3 /src/layout/IHyprLayout.cpp | |
| parent | 5c1097cbc19131a7770b2a3f01f6f24e626991d2 (diff) | |
input: Only limit drag resizes (#5164)
* only limit drag resizes
* change to not equals
* remove extra parentheses
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 c8c00183..02f39d94 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -355,7 +355,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)) + if ((abs(TICKDELTA.x) < 1.f && abs(TICKDELTA.y) < 1.f) || (TIMERDELTA < MSMONITOR && canSkipUpdate && g_pInputManager->dragMode != MBIND_MOVE)) return; TIMER = std::chrono::high_resolution_clock::now(); |
