animation: fix slide/slidevert to accept params (#11574)

This commit is contained in:
0xFMD 2025-09-06 20:24:17 +03:00 committed by GitHub
parent 4e785d12a9
commit 56dd1124ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 20 deletions

View file

@ -300,7 +300,7 @@ std::string CHyprAnimationManager::styleValidInConfigVar(const std::string& conf
} else if (config.starts_with("workspaces") || config.starts_with("specialWorkspace")) {
if (style == "slide" || style == "slidevert" || style == "fade")
return "";
else if (style.starts_with("slidefade")) {
else if (style.starts_with("slide")) {
// try parsing
float movePerc = 0.f;
if (style.find('%') != std::string::npos) {