From 18901b8e593ebd05a7134dcdb8a7774206cf5646 Mon Sep 17 00:00:00 2001 From: Lichie <90825386+lichie567@users.noreply.github.com> Date: Wed, 17 Dec 2025 10:23:12 -0800 Subject: desktop/windowRule: force center and move rules to override each other (#12618) --- src/desktop/view/Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/desktop/view/Window.cpp') 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; } -- cgit v1.2.3