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;