master: fix full height when all windows master (#5549)

This commit is contained in:
Jan-Peter Dhallé 2024-04-12 01:05:30 +02:00 committed by GitHub
parent 185a3b4881
commit e0a7cf5c30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;