mirror of
https://github.com/hyprwm/Hyprland
synced 2025-02-17 03:02:15 +01:00
avar: minor fixes
This commit is contained in:
parent
64c8ba2fb1
commit
9e8f051896
1 changed files with 4 additions and 2 deletions
|
@ -275,6 +275,7 @@ class CAnimatedVariable : public CBaseAnimatedVariable {
|
||||||
// Sets the actual value and goal
|
// Sets the actual value and goal
|
||||||
void setValueAndWarp(const VarType& v) {
|
void setValueAndWarp(const VarType& v) {
|
||||||
m_Goal = v;
|
m_Goal = v;
|
||||||
|
m_bIsBeingAnimated = true;
|
||||||
warp();
|
warp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,6 +290,7 @@ class CAnimatedVariable : public CBaseAnimatedVariable {
|
||||||
if (m_fUpdateCallback)
|
if (m_fUpdateCallback)
|
||||||
m_fUpdateCallback(this);
|
m_fUpdateCallback(this);
|
||||||
|
|
||||||
|
if (endCallback)
|
||||||
onAnimationEnd();
|
onAnimationEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue