mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-10 17:29:49 +01:00
core: minor fixes for animation rewrite
This commit is contained in:
parent
c143907857
commit
308b1f3afb
2 changed files with 3 additions and 4 deletions
|
@ -628,7 +628,7 @@ void CWorkspace::forceReportSizesToWindows() {
|
||||||
if (w->m_pWorkspace != m_pSelf || !w->m_bIsMapped || w->isHidden())
|
if (w->m_pWorkspace != m_pSelf || !w->m_bIsMapped || w->isHidden())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
g_pXWaylandManager->setWindowSize(w, w->m_vRealSize->value(), true);
|
g_pXWaylandManager->setWindowSize(w, w->m_vRealSize->goal(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -147,11 +147,10 @@ static void handleUpdate(CAnimatedVariable<VarType>& av, bool warp) {
|
||||||
const auto PBEZIER = g_pAnimationManager->getBezier(av.getBezierName());
|
const auto PBEZIER = g_pAnimationManager->getBezier(av.getBezierName());
|
||||||
const auto POINTY = PBEZIER->getYForPoint(SPENT);
|
const auto POINTY = PBEZIER->getYForPoint(SPENT);
|
||||||
|
|
||||||
if constexpr (std::same_as<VarType, CHyprColor>) {
|
if constexpr (std::same_as<VarType, CHyprColor>)
|
||||||
updateColorVariable(av, POINTY, animationsDisabled);
|
updateColorVariable(av, POINTY, animationsDisabled);
|
||||||
} else {
|
else
|
||||||
updateVariable<VarType>(av, POINTY, animationsDisabled);
|
updateVariable<VarType>(av, POINTY, animationsDisabled);
|
||||||
}
|
|
||||||
|
|
||||||
av.onUpdate();
|
av.onUpdate();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue