mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-07 07:31:53 -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";
|
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);
|
||||||
|
Reference in New Issue
Block a user