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
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue