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
1 changed files with 1 additions and 1 deletions

View File

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