mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-14 05:25:59 +01:00
fix animate_manual_resizes with moves
This commit is contained in:
parent
bf9d31ce49
commit
8ffd244ef6
1 changed files with 6 additions and 1 deletions
|
@ -208,7 +208,12 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) {
|
||||||
g_pHyprRenderer->damageWindow(DRAGGINGWINDOW);
|
g_pHyprRenderer->damageWindow(DRAGGINGWINDOW);
|
||||||
|
|
||||||
if (g_pInputManager->dragMode == MBIND_MOVE) {
|
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());
|
g_pXWaylandManager->setWindowSize(DRAGGINGWINDOW, DRAGGINGWINDOW->m_vRealSize.goalv());
|
||||||
} else if (g_pInputManager->dragMode == MBIND_RESIZE) {
|
} else if (g_pInputManager->dragMode == MBIND_RESIZE) {
|
||||||
|
|
Loading…
Reference in a new issue