dont change size if partial damage

This commit is contained in:
vaxerski 2022-05-05 15:16:10 +02:00
parent e71514fa26
commit 359bb2bdda

View file

@ -154,8 +154,8 @@ void CAnimationManager::tick() {
} }
// set size and pos if valid // set size and pos if valid, but only if damage policy entire (dont if border for example)
if (g_pCompositor->windowValidMapped(PWINDOW)) if (g_pCompositor->windowValidMapped(PWINDOW) && av->m_eDamagePolicy == AVARDAMAGE_ENTIRE)
g_pXWaylandManager->setWindowSize(PWINDOW, PWINDOW->m_vRealSize.goalv()); g_pXWaylandManager->setWindowSize(PWINDOW, PWINDOW->m_vRealSize.goalv());
} }
} }