mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:26:00 +01:00
master: fix center resizing (#5394)
This commit is contained in:
parent
153c8f35ce
commit
3965faafac
1 changed files with 1 additions and 1 deletions
|
@ -799,7 +799,7 @@ void CHyprMasterLayout::resizeActiveWindow(const Vector2D& pixResize, eRectCorne
|
||||||
case ORIENTATION_TOP: delta = pixResize.y / PMONITOR->vecSize.y; break;
|
case ORIENTATION_TOP: delta = pixResize.y / PMONITOR->vecSize.y; break;
|
||||||
case ORIENTATION_CENTER:
|
case ORIENTATION_CENTER:
|
||||||
delta = pixResize.x / PMONITOR->vecSize.x;
|
delta = pixResize.x / PMONITOR->vecSize.x;
|
||||||
if (WINDOWS > 2) {
|
if (WINDOWS > 2 || *ALWAYSCENTER) {
|
||||||
if (!NONE || !PNODE->isMaster)
|
if (!NONE || !PNODE->isMaster)
|
||||||
delta *= 2;
|
delta *= 2;
|
||||||
if ((!PNODE->isMaster && DISPLAYLEFT) || (PNODE->isMaster && LEFT && *PSMARTRESIZING))
|
if ((!PNODE->isMaster && DISPLAYLEFT) || (PNODE->isMaster && LEFT && *PSMARTRESIZING))
|
||||||
|
|
Loading…
Reference in a new issue