config: loosen restrictions around animation keywords

Fixes #3185, makes hyprland ignore further args if an animation is disabled
This commit is contained in:
vaxerski 2023-09-06 12:58:01 +02:00
parent 61a71c65ac
commit 37e2311a3e

View file

@ -752,6 +752,7 @@ void CConfigManager::handleAnimation(const std::string& command, const std::stri
parseError = "invalid animation on/off state"; parseError = "invalid animation on/off state";
} }
if (PANIM->second.internalEnabled) {
// speed // speed
if (isNumber(ARGS[2], true)) { if (isNumber(ARGS[2], true)) {
PANIM->second.internalSpeed = std::stof(ARGS[2]); PANIM->second.internalSpeed = std::stof(ARGS[2]);
@ -782,6 +783,7 @@ void CConfigManager::handleAnimation(const std::string& command, const std::stri
if (ERR != "") if (ERR != "")
parseError = ERR; parseError = ERR;
} }
}
// now, check for children, recursively // now, check for children, recursively
setAnimForChildren(&PANIM->second); setAnimForChildren(&PANIM->second);