From 94bd4123c6e8fd3162e245b0d568c9d6dfd75780 Mon Sep 17 00:00:00 2001 From: ItsOhen Date: Sun, 15 Mar 2026 20:32:05 +0100 Subject: desktop/rules: fix static rules and content type. (#13725) Hopefully for the last time in a while. Also a lot easier to add in new static types with the recheck done in window map instead of the rule. --- src/desktop/rule/windowRule/WindowRuleApplicator.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/desktop/rule/windowRule/WindowRuleApplicator.hpp') diff --git a/src/desktop/rule/windowRule/WindowRuleApplicator.hpp b/src/desktop/rule/windowRule/WindowRuleApplicator.hpp index 5c1d4fd1..8bcf7008 100644 --- a/src/desktop/rule/windowRule/WindowRuleApplicator.hpp +++ b/src/desktop/rule/windowRule/WindowRuleApplicator.hpp @@ -33,7 +33,8 @@ namespace Desktop::Rule { void propertiesChanged(std::underlying_type_t props); std::unordered_set resetProps(std::underlying_type_t props, Types::eOverridePriority prio = Types::PRIORITY_WINDOW_RULE); - void readStaticRules(bool preRead = false); + bool readStaticRules(bool preRead = false); + void recheckStaticRules(); // static props struct { @@ -138,7 +139,8 @@ namespace Desktop::Rule { #undef DEFINE_PROP private: - PHLWINDOWREF m_window; + PHLWINDOWREF m_window; + std::underlying_type_t propsToRecheck = RULE_PROP_NONE; struct SRuleResult { bool needsRelayout = false; -- cgit v1.2.3