dekstop/window: read static rules before guessing initial size if possible (#12783)

This commit is contained in:
Vaxry 2026-01-01 21:49:57 +01:00 committed by GitHub
parent 9b93d621b1
commit 31d3181e1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 45 additions and 8 deletions

View file

@ -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());