mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 23:21:57 -07:00
xdg-shell: fix xdg-positioner y-flip (#7094)
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user