desktop/windowRule: force center and move rules to override each other (#12618)

This commit is contained in:
Lichie 2025-12-17 10:23:12 -08:00 committed by GitHub
parent 7098558420
commit 18901b8e59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View file

@ -481,6 +481,7 @@ CWindowRuleApplicator::SRuleResult CWindowRuleApplicator::applyStaticRule(const
break;
}
case WINDOW_RULE_EFFECT_MOVE: {
static_.center = std::nullopt;
static_.position = effect;
break;
}
@ -489,6 +490,7 @@ CWindowRuleApplicator::SRuleResult CWindowRuleApplicator::applyStaticRule(const
break;
}
case WINDOW_RULE_EFFECT_CENTER: {
static_.position.clear();
static_.center = truthy(effect);
break;
}