desktop/windowRule: force center and move rules to override each other (#12618)
This commit is contained in:
parent
7098558420
commit
18901b8e59
3 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue