diff options
| author | Lichie <90825386+lichie567@users.noreply.github.com> | 2025-12-17 10:23:12 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-17 18:23:12 +0000 |
| commit | 18901b8e593ebd05a7134dcdb8a7774206cf5646 (patch) | |
| tree | 5843db9409f2b9b544cfc39efb084be0b105305c /src/desktop/view/Window.cpp | |
| parent | 709855842068315bb2109d8f422a70c2b5ed1931 (diff) | |
desktop/windowRule: force center and move rules to override each other (#12618)
Diffstat (limited to 'src/desktop/view/Window.cpp')
| -rw-r--r-- | src/desktop/view/Window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/view/Window.cpp b/src/desktop/view/Window.cpp index 0eadc326..bf853557 100644 --- a/src/desktop/view/Window.cpp +++ b/src/desktop/view/Window.cpp @@ -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; } |
