diff options
Diffstat (limited to 'tests/wayland/test_popup_positioner.c')
| -rw-r--r-- | tests/wayland/test_popup_positioner.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/wayland/test_popup_positioner.c b/tests/wayland/test_popup_positioner.c index 86778f6..a851ddb 100644 --- a/tests/wayland/test_popup_positioner.c +++ b/tests/wayland/test_popup_positioner.c @@ -1,5 +1,4 @@ -/* Capture xdg_positioner requests to verify explicit placement and the legacy - * beside mapping without requiring a compositor. */ +/* Capture explicit xdg_positioner placement without requiring a compositor. */ #include "platform/wayland/internal.h" #include <assert.h> @@ -56,7 +55,12 @@ int main(void) struct yasl_private_popup_spec spec = { .size = {64, 48}, .anchor = {13, 24, 8, 6}, - .beside = true, + .anchor_edges = XDG_POSITIONER_ANCHOR_TOP_RIGHT, + .gravity = XDG_POSITIONER_GRAVITY_BOTTOM_RIGHT, + .constraints = XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_FLIP_X | + XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_FLIP_Y | + XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_SLIDE_X | + XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_SLIDE_Y, }; struct xdg_positioner *positioner = popup_positioner(&popup, &spec); @@ -72,7 +76,6 @@ int main(void) XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_SLIDE_Y)); assert(record.reactive); - spec.positioner_explicit = true; spec.anchor_edges = XDG_POSITIONER_ANCHOR_NONE; spec.gravity = XDG_POSITIONER_GRAVITY_RIGHT; spec.constraints = XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_RESIZE_X | |
