desktop/windowRule: use content rule as enum directly (#13275)

This commit is contained in:
ssareta 2026-02-17 01:15:50 +13:00 committed by GitHub
parent 6716b8a0e3
commit 17fc159ae2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,7 +97,7 @@ bool CWindowRule::matches(PHLWINDOW w, bool allowEnvLookup) {
return false;
break;
case RULE_PROP_CONTENT:
if (!engine->match(NContentType::toString(w->getContentType())))
if (!engine->match(w->getContentType()))
return false;
break;
case RULE_PROP_XDG_TAG: