layout: fit floating window on toggle to float (#12139)

This commit is contained in:
Vaxry 2025-10-29 23:21:28 +00:00 committed by GitHub
parent 83a0a62004
commit 6ade4d58ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 108 additions and 10 deletions

View file

@ -257,7 +257,10 @@ CBox CWindow::getWindowBoxUnified(uint64_t properties) {
return {PMONITOR->m_position.x, PMONITOR->m_position.y, PMONITOR->m_size.x, PMONITOR->m_size.y};
}
CBox box = {m_realPosition->value().x, m_realPosition->value().y, m_realSize->value().x, m_realSize->value().y};
const auto POS = m_realPosition->value();
const auto SIZE = m_realSize->value();
CBox box{POS, SIZE};
box.addExtents(getWindowExtentsUnified(properties));
return box;