mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-29 14:48:28 +00:00
core: minor fixes for animation rewrite
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user