aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-03-31 21:43:08 +0100
committerVaxry <[email protected]>2024-03-31 21:43:08 +0100
commit9e8f0518961041b60e6c4843f545734e833d5355 (patch)
treea157e8e9133a306808c4fec509f33166e64bd7d4
parent64c8ba2fb1977a055b9718c7c7cfb1740756d963 (diff)
downloadHyprland-9e8f0518961041b60e6c4843f545734e833d5355.tar.gz
Hyprland-9e8f0518961041b60e6c4843f545734e833d5355.zip
avar: minor fixes
-rw-r--r--src/helpers/AnimatedVariable.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/helpers/AnimatedVariable.hpp b/src/helpers/AnimatedVariable.hpp
index 2add41be..85ffb9ab 100644
--- a/src/helpers/AnimatedVariable.hpp
+++ b/src/helpers/AnimatedVariable.hpp
@@ -274,7 +274,8 @@ class CAnimatedVariable : public CBaseAnimatedVariable {
// Sets the actual value and goal
void setValueAndWarp(const VarType& v) {
- m_Goal = v;
+ m_Goal = v;
+ m_bIsBeingAnimated = true;
warp();
}
@@ -289,7 +290,8 @@ class CAnimatedVariable : public CBaseAnimatedVariable {
if (m_fUpdateCallback)
m_fUpdateCallback(this);
- onAnimationEnd();
+ if (endCallback)
+ onAnimationEnd();
}
private: