mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 13:29:49 +01:00
config: loosen restrictions around animation keywords
Fixes #3185, makes hyprland ignore further args if an animation is disabled
This commit is contained in:
parent
61a71c65ac
commit
37e2311a3e
1 changed files with 23 additions and 21 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue