aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/layer-shell.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/layer-shell.c b/examples/layer-shell.c
index 56fa28f7..1824c50c 100644
--- a/examples/layer-shell.c
+++ b/examples/layer-shell.c
@@ -175,8 +175,7 @@ static void create_popup() {
xdg_positioner_set_size(xdg_positioner, 256, 256);
xdg_positioner_set_offset(xdg_positioner, 0, 0);
xdg_positioner_set_anchor_rect(xdg_positioner, cur_x, cur_y, 1, 1);
- xdg_positioner_set_anchor(xdg_positioner, XDG_POSITIONER_ANCHOR_TOP_LEFT);
- xdg_positioner_set_gravity(xdg_positioner, XDG_POSITIONER_GRAVITY_TOP_LEFT);
+ xdg_positioner_set_anchor(xdg_positioner, XDG_POSITIONER_ANCHOR_BOTTOM_RIGHT);
popup = xdg_surface_get_popup(xdg_surface, NULL, xdg_positioner);
assert(popup);