diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-03-07 19:53:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-07 19:53:34 +0000 |
| commit | a4ecae91600d7e8ceb31610176d6b40cb816711b (patch) | |
| tree | b7753624381d474b04c4d7ac32e2be7544603a11 /src/desktop/rule/windowRule/WindowRule.cpp | |
| parent | 3cf62bea185384aa3c5442a2c5448ae1d62c9c0e (diff) | |
desktop/windowRule: fix matching CONTENT (#13636)
ref #13596
Diffstat (limited to 'src/desktop/rule/windowRule/WindowRule.cpp')
| -rw-r--r-- | src/desktop/rule/windowRule/WindowRule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/rule/windowRule/WindowRule.cpp b/src/desktop/rule/windowRule/WindowRule.cpp index 8028e482..08cd1603 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()) && !engine->match(NContentType::toString(w->getContentType()))) + if (!engine->match(std::format("{}", sc<size_t>(w->getContentType()))) && !engine->match(NContentType::toString(w->getContentType()))) return false; break; case RULE_PROP_XDG_TAG: |
