config/lua: cannot disable animation (#14215)

* config/lua: cannot disable animation

seems regression from 9ee5ff1f71

* typing typo (auto generated by cmake)
This commit is contained in:
phanium 2026-04-30 19:53:51 +08:00 committed by GitHub
parent 2ff598896d
commit d40860e8e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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();
}