fix mfact not applying to addmaster (#1715)

Co-authored-by: Hill <hillyu@live.com>
This commit is contained in:
hillyu 2023-03-06 17:03:49 +08:00 committed by GitHub
parent 7739b776cd
commit 4f647a8e8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,6 +123,7 @@ void CHyprMasterLayout::onWindowCreatedTiling(CWindow* pWindow) {
}
} else {
PNODE->isMaster = false;
PNODE->percMaster = lastSplitPercent;
// first, check if it isn't too big.
if (const auto MAXSIZE = g_pXWaylandManager->getMaxSizeForWindow(pWindow);