aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/desktop/WindowRule.hpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-12-21 23:07:23 +0000
committerVaxry <[email protected]>2024-12-21 23:07:34 +0000
commit31422ae25dee33dd000798b64a80bd7fd08d2ece (patch)
tree43c71511f09159b716435bf6abb4deaaadd0b49a /src/desktop/WindowRule.hpp
parent57921d7dbd1b87a9474f609cb9cd30e6174027cd (diff)
downloadHyprland-31422ae25dee33dd000798b64a80bd7fd08d2ece.tar.gz
Hyprland-31422ae25dee33dd000798b64a80bd7fd08d2ece.zip
windowrules: add negative: prefix for negating a regex
fixes #8799
Diffstat (limited to 'src/desktop/WindowRule.hpp')
-rw-r--r--src/desktop/WindowRule.hpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/desktop/WindowRule.hpp b/src/desktop/WindowRule.hpp
index 3ce31179..be9c2d9c 100644
--- a/src/desktop/WindowRule.hpp
+++ b/src/desktop/WindowRule.hpp
@@ -2,12 +2,7 @@
#include <string>
#include <cstdint>
-#include <memory>
-
-//NOLINTNEXTLINE
-namespace re2 {
- class RE2;
-};
+#include "Rule.hpp"
class CWindowRule {
public:
@@ -65,9 +60,9 @@ class CWindowRule {
std::string szWorkspace = ""; // empty means any
// precompiled regexes
- std::unique_ptr<re2::RE2> rTitle;
- std::unique_ptr<re2::RE2> rClass;
- std::unique_ptr<re2::RE2> rInitialTitle;
- std::unique_ptr<re2::RE2> rInitialClass;
- std::unique_ptr<re2::RE2> rV1Regex;
+ CRuleRegexContainer rTitle;
+ CRuleRegexContainer rClass;
+ CRuleRegexContainer rInitialTitle;
+ CRuleRegexContainer rInitialClass;
+ CRuleRegexContainer rV1Regex;
}; \ No newline at end of file