mirror of https://github.com/hyprwm/Hyprland
xdg-shell: fix xdg-positioner y-flip (#7094)
This commit is contained in:
parent
6e6c61b9e8
commit
33e513d489
|
@ -567,7 +567,7 @@ CBox CXDGPositionerRules::getPosition(CBox constraint, const Vector2D& parentCoo
|
|||
if (flip) {
|
||||
state.gravity ^= CEdges::TOP | CEdges::BOTTOM;
|
||||
anchorY = state.anchor.top() ? anchorRect.extent().y : state.anchor.bottom() ? anchorRect.y : anchorY;
|
||||
effectiveX = calcEffectiveX();
|
||||
effectiveY = calcEffectiveY();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue