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

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