diff options
| author | thejch <66577496+thejch@users.noreply.github.com> | 2024-04-02 17:22:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-03 01:22:27 +0100 |
| commit | 3965faafacf18f6e43be91ba326ddfce3948eb3d (patch) | |
| tree | 722fee42e0eea98d3ccfd342fc5e2f302732a64c /src/layout/MasterLayout.cpp | |
| parent | 153c8f35ce5f24b066de916269a94fce1d4f3357 (diff) | |
master: fix center resizing (#5394)
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 2066ca76..f8f710f6 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -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)) |
