windowrules: add negative: prefix for negating a regex

fixes #8799
This commit is contained in:
Vaxry 2024-12-21 23:07:23 +00:00
parent 57921d7dbd
commit 31422ae25d
5 changed files with 61 additions and 34 deletions

View file

@ -2,12 +2,7 @@
#include <string>
#include <cstdint>
#include <memory>
//NOLINTNEXTLINE
namespace re2 {
class RE2;
};
#include "Rule.hpp"
class CLayerRule {
public:
@ -27,10 +22,10 @@ class CLayerRule {
RULE_ZUMBA,
};
eRuleType ruleType = RULE_INVALID;
eRuleType ruleType = RULE_INVALID;
const std::string targetNamespace;
const std::string rule;
const std::string targetNamespace;
const std::string rule;
std::unique_ptr<re2::RE2> rTargetNamespaceRegex;
CRuleRegexContainer targetNamespaceRegex;
};