mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 07:01:57 -07:00
config: loosen restrictions around animation keywords
Fixes #3185, makes hyprland ignore further args if an animation is disabled
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user