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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 22 additions and 0 deletions

View file

@ -389,6 +389,8 @@ void CWindow::moveToWorkspace(int workspaceID) {
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(m_iWorkspaceID);
setAnimationsToMove();
updateSpecialRenderData();
if (PWORKSPACE) {
@ -1147,3 +1149,10 @@ bool CWindow::visibleOnMonitor(CMonitor* pMonitor) {
return wlr_output_layout_intersects(g_pCompositor->m_sWLROutputLayout, pMonitor->output, wbox.pWlr());
}
void CWindow::setAnimationsToMove() {
auto* const PANIMCFG = g_pConfigManager->getAnimationPropertyConfig("windowsMove");
m_vRealPosition.setConfig(PANIMCFG);
m_vRealSize.setConfig(PANIMCFG);
m_bAnimatingIn = false;
}