From 4f647a8e8be78d3817f126e41940bef49e81232e Mon Sep 17 00:00:00 2001 From: hillyu Date: Mon, 6 Mar 2023 17:03:49 +0800 Subject: [PATCH] fix mfact not applying to addmaster (#1715) Co-authored-by: Hill --- src/layout/MasterLayout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index f62d1add..152f7685 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -122,7 +122,8 @@ void CHyprMasterLayout::onWindowCreatedTiling(CWindow* pWindow) { return; } } else { - PNODE->isMaster = false; + PNODE->isMaster = false; + PNODE->percMaster = lastSplitPercent; // first, check if it isn't too big. if (const auto MAXSIZE = g_pXWaylandManager->getMaxSizeForWindow(pWindow);