summaryrefslogtreecommitdiff
path: root/src/protocols/XDGShell.cpp
diff options
context:
space:
mode:
authoroutfoxxed <outfoxxed@outfoxxed.me>2024-07-29 01:48:27 -0700
committerGitHub <noreply@github.com>2024-07-29 09:48:27 +0100
commit33e513d489faf5998a3831d55aa7ddd796ef3368 (patch)
tree5163e0936da03b5f87fba00c86c97fe418502f48 /src/protocols/XDGShell.cpp
parent6e6c61b9e87942425b978efa2309dbcca57c3217 (diff)
xdg-shell: fix xdg-positioner y-flip (#7094)
Diffstat (limited to 'src/protocols/XDGShell.cpp')
-rw-r--r--src/protocols/XDGShell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/XDGShell.cpp b/src/protocols/XDGShell.cpp
index e9921988..cb8a5bc3 100644
--- a/src/protocols/XDGShell.cpp
+++ b/src/protocols/XDGShell.cpp
@@ -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();
}
}