mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-13 11:05:46 -07:00
avar: minor fixes
This commit is contained in:
@@ -275,6 +275,7 @@ class CAnimatedVariable : public CBaseAnimatedVariable {
|
||||
// Sets the actual value and goal
|
||||
void setValueAndWarp(const VarType& v) {
|
||||
m_Goal = v;
|
||||
m_bIsBeingAnimated = true;
|
||||
warp();
|
||||
}
|
||||
|
||||
@@ -289,6 +290,7 @@ class CAnimatedVariable : public CBaseAnimatedVariable {
|
||||
if (m_fUpdateCallback)
|
||||
m_fUpdateCallback(this);
|
||||
|
||||
if (endCallback)
|
||||
onAnimationEnd();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user