From 941f88ce2367164bb78769ad832d8a748d7e9aca Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 14 Apr 2018 22:21:05 -0400 Subject: Fix popup positioning & double popups --- examples/layer-shell.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/layer-shell.c') 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); -- cgit v1.2.3