diff options
author | hillyu <[email protected]> | 2023-03-06 17:03:49 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-03-06 09:03:49 +0000 |
commit | 4f647a8e8be78d3817f126e41940bef49e81232e (patch) | |
tree | 9376fb41e410bc7b21167fb593936c4cd82260fb | |
parent | 7739b776cd4f2b11243e27f80d45624b5121d247 (diff) | |
download | Hyprland-4f647a8e8be78d3817f126e41940bef49e81232e.tar.gz Hyprland-4f647a8e8be78d3817f126e41940bef49e81232e.zip |
fix mfact not applying to addmaster (#1715)
Co-authored-by: Hill <[email protected]>
-rw-r--r-- | src/layout/MasterLayout.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |