diff options
author | Jan-Peter Dhallé <[email protected]> | 2024-04-12 01:05:30 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-12 00:05:30 +0100 |
commit | e0a7cf5c3006e9b7acd26551f14ef7b06d5a11ab (patch) | |
tree | cb014e7adc23b40fa8fabdf301e276b582062f12 /src/layout/MasterLayout.cpp | |
parent | 185a3b48814cc4a1afbf32a69792a6161c4038cd (diff) | |
download | Hyprland-e0a7cf5c3006e9b7acd26551f14ef7b06d5a11ab.tar.gz Hyprland-e0a7cf5c3006e9b7acd26551f14ef7b06d5a11ab.zip |
master: fix full height when all windows master (#5549)
Diffstat (limited to 'src/layout/MasterLayout.cpp')
-rw-r--r-- | src/layout/MasterLayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |