layerrules: fix ignorezero not working

fixes #8737
This commit is contained in:
Vaxry 2024-12-16 18:37:34 +00:00
parent aecf1abddd
commit 0706c1a1f7

View file

@ -391,7 +391,8 @@ void CLayerSurface::applyRules() {
forceBlurPopups = true; forceBlurPopups = true;
break; break;
} }
case CLayerRule::RULE_IGNOREALPHA: { case CLayerRule::RULE_IGNOREALPHA:
case CLayerRule::RULE_IGNOREZERO: {
const auto FIRST_SPACE_POS = rule->rule.find_first_of(' '); const auto FIRST_SPACE_POS = rule->rule.find_first_of(' ');
std::string alphaValue = ""; std::string alphaValue = "";
if (FIRST_SPACE_POS != std::string::npos) if (FIRST_SPACE_POS != std::string::npos)