aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2021-03-26 22:57:12 +0100
committerSimon Ser <contact@emersion.fr>2021-03-26 23:20:09 +0100
commit741da702bcc9a40f6c471560b86e20303f981133 (patch)
treec88ec984bd1fc7eb81a820f0224ef52b06f5b283
parent80dbb9ba71bd7d035523010db9bce149c8dd7e02 (diff)
xdg_shell: Fix invert_y of top right anchor
-rw-r--r--types/xdg_shell/wlr_xdg_positioner.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/types/xdg_shell/wlr_xdg_positioner.c b/types/xdg_shell/wlr_xdg_positioner.c
index f88bf323..a4cb9e31 100644
--- a/types/xdg_shell/wlr_xdg_positioner.c
+++ b/types/xdg_shell/wlr_xdg_positioner.c
@@ -281,6 +281,8 @@ static enum xdg_positioner_anchor positioner_anchor_invert_y(
return XDG_POSITIONER_ANCHOR_BOTTOM_LEFT;
case XDG_POSITIONER_ANCHOR_BOTTOM_LEFT:
return XDG_POSITIONER_ANCHOR_TOP_LEFT;
+ case XDG_POSITIONER_ANCHOR_TOP_RIGHT:
+ return XDG_POSITIONER_ANCHOR_BOTTOM_RIGHT;
case XDG_POSITIONER_ANCHOR_BOTTOM_RIGHT:
return XDG_POSITIONER_ANCHOR_TOP_RIGHT;
default: