diff options
| author | Berke Güzel <berke.guzel@gdh.digital> | 2026-10-14 09:38:31 +0300 |
|---|---|---|
| committer | Berke Güzel <berke.guzel@gdh.digital> | 2026-10-14 09:38:31 +0300 |
| commit | 5ef6ca21ab9e1cf4f69254234d190a634b777d52 (patch) | |
| tree | 974d3797a6d9487e54a811e224bf78a3f52dda85 /tests/wayland/test_popup_positioner.c | |
| parent | 563b23a33726289387193b85d90fb569631ee05f (diff) | |
Remove deprecated Cocoa OpenGL and private compatibility APIs
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 | |
