desktop/rule: fix matching for content type by str

This commit is contained in:
Vaxry 2026-02-28 15:03:49 +00:00
parent 0002f148c9
commit f7114016c6
No known key found for this signature in database
GPG key ID: 665806380871D640

View file

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