diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-14 22:21:05 -0400 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-04-23 11:24:06 +0200 |
commit | 941f88ce2367164bb78769ad832d8a748d7e9aca (patch) | |
tree | e00b9ddf1696cfa4db5e894a35b6147b01e3e4c4 /examples/layer-shell.c | |
parent | 52baf3dd8acee6e288ae1623860b93b116242367 (diff) |
Fix popup positioning & double popups
Diffstat (limited to 'examples/layer-shell.c')
-rw-r--r-- | examples/layer-shell.c | 3 |
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); |