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

@ -2248,7 +2248,7 @@ void CWindow::mapWindow() {
}
}
if (m_ruleApplicator->static_.center) {
if (m_ruleApplicator->static_.center.value_or(false)) {
const auto WORKAREA = PMONITOR->logicalBoxMinusReserved();
*m_realPosition = WORKAREA.middle() - m_realSize->goal() / 2.f;
}