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_input.c | |
| parent | 563b23a33726289387193b85d90fb569631ee05f (diff) | |
Remove deprecated Cocoa OpenGL and private compatibility APIs
Diffstat (limited to 'tests/wayland/test_input.c')
| -rw-r--r-- | tests/wayland/test_input.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/wayland/test_input.c b/tests/wayland/test_input.c index 2b5592a..820eb8b 100644 --- a/tests/wayland/test_input.c +++ b/tests/wayland/test_input.c @@ -62,7 +62,7 @@ int main(void) char text[32]; snprintf(text, sizeof(text), "commit-%d", i); struct yasl_private_event event; - assert(wayland_surface_poll_event(&w, &event)); + assert(input_queue_pop(&w.input, &event)); assert(event.type == YASL_PRIVATE_EVENT_TEXT && event.surface == &w.base); assert(strcmp(event.text.data, text) == 0); } @@ -77,21 +77,21 @@ int main(void) text_input_listener.commit_string(&seat, NULL, "X"); text_input_listener.done(&seat, NULL, 601); struct yasl_private_event edit; - assert(wayland_surface_poll_event(&w, &edit)); + assert(input_queue_pop(&w.input, &edit)); assert(edit.type == YASL_PRIVATE_EVENT_TEXT_EDIT && edit.surface == &w.base); assert(strcmp(edit.text_edit.data, "X") == 0 && edit.text_edit.len == 1); assert(edit.text_edit.begin == 2 && edit.text_edit.end == 8); assert(edit.text_edit.revision == 41 && edit.text_edit.generation == 9); struct yasl_private_event committed; - assert(!wayland_surface_poll_event(&w, &committed)); + assert(!input_queue_pop(&w.input, &committed)); /* Deletion without a commit replaces the range with the empty string. */ text_input_listener.delete_surrounding_text(&seat, NULL, 2, 2); text_input_listener.done(&seat, NULL, 602); - assert(wayland_surface_poll_event(&w, &edit)); + assert(input_queue_pop(&w.input, &edit)); assert(edit.type == YASL_PRIVATE_EVENT_TEXT_EDIT && edit.text_edit.len == 0); assert(edit.text_edit.data[0] == '\0' && edit.text_edit.begin == 2 && edit.text_edit.end == 8); - assert(!wayland_surface_poll_event(&w, &committed)); + assert(!input_queue_pop(&w.input, &committed)); input_queue_clear(&w.input); free(w.base.text_surrounding); return 0; |
