mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 09:49:47 +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";
|
||||
}
|
||||
|
||||
if (PANIM->second.internalEnabled) {
|
||||
// speed
|
||||
if (isNumber(ARGS[2], true)) {
|
||||
PANIM->second.internalSpeed = std::stof(ARGS[2]);
|
||||
|
@ -782,6 +783,7 @@ void CConfigManager::handleAnimation(const std::string& command, const std::stri
|
|||
if (ERR != "")
|
||||
parseError = ERR;
|
||||
}
|
||||
}
|
||||
|
||||
// now, check for children, recursively
|
||||
setAnimForChildren(&PANIM->second);
|
||||
|
|
Loading…
Reference in a new issue