layerrules: add abovelock to render above lockscreen (#9793)

This commit is contained in:
Virt 2025-04-25 16:38:31 +02:00 committed by GitHub
parent 41f5f67f6c
commit 4cf62c114e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 71 additions and 24 deletions

View file

@ -421,9 +421,8 @@ void CLayerSurface::applyRules() {
}
case CLayerRule::RULE_XRAY: {
CVarList vars{rule->m_rule, 0, ' '};
try {
m_xray = configStringToInt(vars[1]).value_or(false);
} catch (...) {}
m_xray = configStringToInt(vars[1]).value_or(false);
break;
}
case CLayerRule::RULE_ANIMATION: {
@ -438,6 +437,14 @@ void CLayerSurface::applyRules() {
} catch (...) { Debug::log(ERR, "Invalid value passed to order"); }
break;
}
case CLayerRule::RULE_ABOVELOCK: {
m_aboveLockscreen = true;
CVarList vars{rule->m_rule, 0, ' '};
m_aboveLockscreenInteractable = configStringToInt(vars[1]).value_or(false);
break;
}
default: break;
}
}