core: minor fixes for animation rewrite

This commit is contained in:
Vaxry 2025-01-07 20:30:44 +01:00
parent c143907857
commit 308b1f3afb
2 changed files with 3 additions and 4 deletions

View file

@ -628,7 +628,7 @@ void CWorkspace::forceReportSizesToWindows() {
if (w->m_pWorkspace != m_pSelf || !w->m_bIsMapped || w->isHidden())
continue;
g_pXWaylandManager->setWindowSize(w, w->m_vRealSize->value(), true);
g_pXWaylandManager->setWindowSize(w, w->m_vRealSize->goal(), true);
}
}

View file

@ -147,11 +147,10 @@ static void handleUpdate(CAnimatedVariable<VarType>& av, bool warp) {
const auto PBEZIER = g_pAnimationManager->getBezier(av.getBezierName());
const auto POINTY = PBEZIER->getYForPoint(SPENT);
if constexpr (std::same_as<VarType, CHyprColor>) {
if constexpr (std::same_as<VarType, CHyprColor>)
updateColorVariable(av, POINTY, animationsDisabled);
} else {
else
updateVariable<VarType>(av, POINTY, animationsDisabled);
}
av.onUpdate();