diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-01-01 21:49:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-01 21:49:57 +0100 |
| commit | 31d3181e1ee91e338fb4fb8207d64b8d689310fc (patch) | |
| tree | 71b00156665fe38d755f130712156e5537220ee5 /src/desktop/view/Window.cpp | |
| parent | 9b93d621b1019e8378b8a902edb7ba8dd8baf204 (diff) | |
dekstop/window: read static rules before guessing initial size if possible (#12783)
Diffstat (limited to 'src/desktop/view/Window.cpp')
| -rw-r--r-- | src/desktop/view/Window.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/desktop/view/Window.cpp b/src/desktop/view/Window.cpp index 3031284c..a22f4a9d 100644 --- a/src/desktop/view/Window.cpp +++ b/src/desktop/view/Window.cpp @@ -2546,6 +2546,9 @@ void CWindow::unmapWindow() { void CWindow::commitWindow() { if (!m_isX11 && m_xdgSurface->m_initialCommit) { + // try to calculate static rules already for any floats + m_ruleApplicator->readStaticRules(true); + Vector2D predSize = g_pLayoutManager->getCurrentLayout()->predictSizeForNewWindow(m_self.lock()); Log::logger->log(Log::DEBUG, "Layout predicts size {} for {}", predSize, m_self.lock()); |
