From 8ffd244ef6cca76af51e283355ae048557510349 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 19 Oct 2022 21:17:49 +0100 Subject: [PATCH] fix animate_manual_resizes with moves --- src/layout/IHyprLayout.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 24f066eb..d2c2c9ad 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -208,7 +208,12 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) { g_pHyprRenderer->damageWindow(DRAGGINGWINDOW); if (g_pInputManager->dragMode == MBIND_MOVE) { - DRAGGINGWINDOW->m_vRealPosition.setValueAndWarp(m_vBeginDragPositionXY + DELTA); + + if (*PANIMATE) { + DRAGGINGWINDOW->m_vRealPosition = m_vBeginDragPositionXY + DELTA; + } else { + DRAGGINGWINDOW->m_vRealPosition.setValueAndWarp(m_vBeginDragPositionXY + DELTA); + } g_pXWaylandManager->setWindowSize(DRAGGINGWINDOW, DRAGGINGWINDOW->m_vRealSize.goalv()); } else if (g_pInputManager->dragMode == MBIND_RESIZE) {