summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphanium <91544758+phanen@users.noreply.github.com>2026-04-30 19:53:51 +0800
committerGitHub <noreply@github.com>2026-04-30 12:53:51 +0100
commitd40860e8e27c2abc50cebaae56e16b4ac10af667 (patch)
tree96409a57dada6c94878134640e6ee7fe40b242ba
parent2ff598896d3334cb44331463e845128cae4815f1 (diff)
config/lua: cannot disable animation (#14215)
* config/lua: cannot disable animation seems regression from 9ee5ff1f7181cc5fa575f1702802ccb78c21ba12 * typing typo (auto generated by cmake)
-rw-r--r--meta/hl.meta.lua2
-rw-r--r--src/managers/animation/AnimationManager.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/meta/hl.meta.lua b/meta/hl.meta.lua
index 64f49b2a..038c066b 100644
--- a/meta/hl.meta.lua
+++ b/meta/hl.meta.lua
@@ -676,7 +676,7 @@ local __HL_Notification = {}
local __HL_Timer = {}
---@class HL.Window
----@field acceptsInput boolean
+---@field accepts_input boolean
---@field active boolean|nil
---@field address string
---@field at integer|table
diff --git a/src/managers/animation/AnimationManager.cpp b/src/managers/animation/AnimationManager.cpp
index c5c3ca54..76a12465 100644
--- a/src/managers/animation/AnimationManager.cpp
+++ b/src/managers/animation/AnimationManager.cpp
@@ -142,9 +142,9 @@ static void handleUpdate(CAnimatedVariable<VarType>& av, bool warp) {
const auto STEP = av.getCurveStep();
if constexpr (std::same_as<VarType, CHyprColor>)
- updateColorVariable(av, STEP.value, STEP.finished);
+ updateColorVariable(av, STEP.value, STEP.finished || animationsDisabled);
else
- updateVariable<VarType>(av, STEP.value, STEP.finished);
+ updateVariable<VarType>(av, STEP.value, STEP.finished || animationsDisabled);
av.onUpdate();
}