xdg-shell: fix xdg-positioner y-flip (#7094)

This commit is contained in:
outfoxxed 2024-07-29 01:48:27 -07:00 committed by GitHub
parent 6e6c61b9e8
commit 33e513d489
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
} }
} }