From f7114016c6dbf524763038642521892b473f4d36 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 28 Feb 2026 15:03:49 +0000 Subject: [PATCH] desktop/rule: fix matching for content type by str --- src/desktop/rule/windowRule/WindowRule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/desktop/rule/windowRule/WindowRule.cpp b/src/desktop/rule/windowRule/WindowRule.cpp index b93dddec..8028e482 100644 --- a/src/desktop/rule/windowRule/WindowRule.cpp +++ b/src/desktop/rule/windowRule/WindowRule.cpp @@ -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: