From 57921d7dbd1b87a9474f609cb9cd30e6174027cd Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 21 Dec 2024 19:21:45 +0000 Subject: windowrules: precompute regexes for window/layer rules --- src/desktop/WindowRule.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/desktop/WindowRule.hpp') diff --git a/src/desktop/WindowRule.hpp b/src/desktop/WindowRule.hpp index 6faf8b5a..3ce31179 100644 --- a/src/desktop/WindowRule.hpp +++ b/src/desktop/WindowRule.hpp @@ -2,6 +2,12 @@ #include #include +#include + +//NOLINTNEXTLINE +namespace re2 { + class RE2; +}; class CWindowRule { public: @@ -57,4 +63,11 @@ class CWindowRule { std::string szFullscreenState = ""; // empty means any std::string szOnWorkspace = ""; // empty means any std::string szWorkspace = ""; // empty means any + + // precompiled regexes + std::unique_ptr rTitle; + std::unique_ptr rClass; + std::unique_ptr rInitialTitle; + std::unique_ptr rInitialClass; + std::unique_ptr rV1Regex; }; \ No newline at end of file -- cgit v1.2.3