diff options
author | phonetic112 <[email protected]> | 2024-03-19 12:03:31 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2024-03-19 16:03:31 +0000 |
commit | bcba3951f45f11245d424274130eb3a0ac790d93 (patch) | |
tree | 0a67a88ef26bfd6ef58ad6b5431adc4e5b6c34b3 | |
parent | 5c1097cbc19131a7770b2a3f01f6f24e626991d2 (diff) | |
download | Hyprland-bcba3951f45f11245d424274130eb3a0ac790d93.tar.gz Hyprland-bcba3951f45f11245d424274130eb3a0ac790d93.zip |
input: Only limit drag resizes (#5164)
* only limit drag resizes
* change to not equals
* remove extra parentheses
-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(); |