dekstop/window: read static rules before guessing initial size if possible (#12783)
This commit is contained in:
parent
9b93d621b1
commit
31d3181e1e
6 changed files with 45 additions and 8 deletions
|
|
@ -537,7 +537,7 @@ CWindowRuleApplicator::SRuleResult CWindowRuleApplicator::applyStaticRule(const
|
|||
return SRuleResult{};
|
||||
}
|
||||
|
||||
void CWindowRuleApplicator::readStaticRules() {
|
||||
void CWindowRuleApplicator::readStaticRules(bool preRead) {
|
||||
if (!m_window)
|
||||
return;
|
||||
|
||||
|
|
@ -592,7 +592,8 @@ void CWindowRuleApplicator::readStaticRules() {
|
|||
for (const auto& wr : execRules) {
|
||||
applyStaticRule(wr);
|
||||
applyDynamicRule(wr);
|
||||
ruleEngine()->unregisterRule(wr);
|
||||
if (!preRead)
|
||||
ruleEngine()->unregisterRule(wr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue