mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 23:25:58 +01:00
xdg-shell: fix xdg-positioner y-flip (#7094)
This commit is contained in:
parent
6e6c61b9e8
commit
33e513d489
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ CBox CXDGPositionerRules::getPosition(CBox constraint, const Vector2D& parentCoo
|
||||||
if (flip) {
|
if (flip) {
|
||||||
state.gravity ^= CEdges::TOP | CEdges::BOTTOM;
|
state.gravity ^= CEdges::TOP | CEdges::BOTTOM;
|
||||||
anchorY = state.anchor.top() ? anchorRect.extent().y : state.anchor.bottom() ? anchorRect.y : anchorY;
|
anchorY = state.anchor.top() ? anchorRect.extent().y : state.anchor.bottom() ? anchorRect.y : anchorY;
|
||||||
effectiveX = calcEffectiveX();
|
effectiveY = calcEffectiveY();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue