animations: Fix incorrect animation when manually moving a window when its being created (#5141)

* fix incorrect rendering when manually moving a window when its being created

* add setAnimationsToMove
This commit is contained in:
thejch
2024-03-18 19:52:52 -07:00
committed by GitHub
parent 7a31c954e5
commit e6532ba024
5 changed files with 22 additions and 0 deletions

View File

@@ -924,6 +924,8 @@ void CHyprDwindleLayout::moveWindowTo(CWindow* pWindow, const std::string& dir)
default: UNREACHABLE();
}
pWindow->setAnimationsToMove();
onWindowRemovedTiling(pWindow);
m_vOverrideFocalPoint = focalPoint;
@@ -969,6 +971,9 @@ void CHyprDwindleLayout::switchWindows(CWindow* pWindow, CWindow* pWindow2) {
std::swap(pWindow2->m_iWorkspaceID, pWindow->m_iWorkspaceID);
}
pWindow->setAnimationsToMove();
pWindow2->setAnimationsToMove();
// recalc the workspace
getMasterNodeOnWorkspace(PNODE->workspaceID)->recalcSizePosRecursive();