diff options
| author | Dashie <fabio.lenherr@gmail.com> | 2023-02-28 21:50:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-28 20:50:10 +0000 |
| commit | 7187ea443e756899d32334cdb5e8a49fa49a3d79 (patch) | |
| tree | 06dcb060f945ad68234957d43d3dcfae9a1bed70 /src/layout/IHyprLayout.cpp | |
| parent | 91fd854e3be1d798607d398596acce470bd9a8e2 (diff) | |
Add option to disable/enable mouse window dragging animations (#1658)
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 75f95682..6a1ff572 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -272,7 +272,8 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) { const auto DELTA = Vector2D(mousePos.x - m_vBeginDragXY.x, mousePos.y - m_vBeginDragXY.y); const auto TICKDELTA = Vector2D(mousePos.x - m_vLastDragXY.x, mousePos.y - m_vLastDragXY.y); - const auto PANIMATE = &g_pConfigManager->getConfigValuePtr("misc:animate_manual_resizes")->intValue; + const auto PANIMATEMOUSE = &g_pConfigManager->getConfigValuePtr("misc:animate_mouse_windowdragging")->intValue; + const auto PANIMATE = &g_pConfigManager->getConfigValuePtr("misc:animate_manual_resizes")->intValue; if (abs(TICKDELTA.x) < 1.f && abs(TICKDELTA.y) < 1.f) return; @@ -283,7 +284,7 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) { if (g_pInputManager->dragMode == MBIND_MOVE) { - if (*PANIMATE) { + if (*PANIMATEMOUSE) { DRAGGINGWINDOW->m_vRealPosition = m_vBeginDragPositionXY + DELTA; } else { DRAGGINGWINDOW->m_vRealPosition.setValueAndWarp(m_vBeginDragPositionXY + DELTA); |
