master: fix center resizing (#5394)

This commit is contained in:
thejch 2024-04-02 17:22:27 -07:00 committed by GitHub
parent 153c8f35ce
commit 3965faafac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -799,7 +799,7 @@ void CHyprMasterLayout::resizeActiveWindow(const Vector2D& pixResize, eRectCorne
case ORIENTATION_TOP: delta = pixResize.y / PMONITOR->vecSize.y; break;
case ORIENTATION_CENTER:
delta = pixResize.x / PMONITOR->vecSize.x;
if (WINDOWS > 2) {
if (WINDOWS > 2 || *ALWAYSCENTER) {
if (!NONE || !PNODE->isMaster)
delta *= 2;
if ((!PNODE->isMaster && DISPLAYLEFT) || (PNODE->isMaster && LEFT && *PSMARTRESIZING))