From e0a7cf5c3006e9b7acd26551f14ef7b06d5a11ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Peter=20Dhall=C3=A9?= <62998174+janpeterd@users.noreply.github.com> Date: Fri, 12 Apr 2024 01:05:30 +0200 Subject: [PATCH] master: fix full height when all windows master (#5549) --- src/layout/MasterLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index 2f9a5cc0..e2b8270d 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -369,7 +369,7 @@ void CHyprMasterLayout::calculateWorkspace(PHLWORKSPACE pWorkspace) { applyNodeDataToWindow(PMASTERNODE); return; } else if (orientation == ORIENTATION_TOP || orientation == ORIENTATION_BOTTOM) { - const float HEIGHT = WSSIZE.y * PMASTERNODE->percMaster; + const float HEIGHT = STACKWINDOWS != 0 ? WSSIZE.y * PMASTERNODE->percMaster : WSSIZE.y; float widthLeft = WSSIZE.x; int mastersLeft = MASTERS; float nextX = 0;