summaryrefslogtreecommitdiff
path: root/src/desktop/rule/windowRule/WindowRuleApplicator.hpp
diff options
context:
space:
mode:
authorItsOhen <TNordfeldt@gmail.com>2026-03-15 20:32:05 +0100
committerGitHub <noreply@github.com>2026-03-15 14:32:05 -0500
commit94bd4123c6e8fd3162e245b0d568c9d6dfd75780 (patch)
tree764d69857d566a44939394960b05731c709ae973 /src/desktop/rule/windowRule/WindowRuleApplicator.hpp
parent3fd2a95475d9a954305eeede59fe2b345a4d8098 (diff)
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.
Diffstat (limited to 'src/desktop/rule/windowRule/WindowRuleApplicator.hpp')
-rw-r--r--src/desktop/rule/windowRule/WindowRuleApplicator.hpp6
1 files changed, 4 insertions, 2 deletions
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<eRuleProperty> props);
std::unordered_set<CWindowRuleEffectContainer::storageType> resetProps(std::underlying_type_t<eRuleProperty> 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<eRuleProperty> propsToRecheck = RULE_PROP_NONE;
struct SRuleResult {
bool needsRelayout = false;