summaryrefslogtreecommitdiff
path: root/tests/wayland/test_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wayland/test_input.c')
-rw-r--r--tests/wayland/test_input.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/wayland/test_input.c b/tests/wayland/test_input.c
index feff2f3..f6112b6 100644
--- a/tests/wayland/test_input.c
+++ b/tests/wayland/test_input.c
@@ -41,10 +41,10 @@ int main(void)
for (int i = 0; i < 600; i++) {
char text[32];
snprintf(text, sizeof(text), "commit-%d", i);
- struct yasl_input_event event;
- assert(wayland_surface_input_poll(&w, &event));
- assert(event.kind == YASL_INPUT_TEXT && event.surface == &w.base);
- assert(strcmp(event.text.text, text) == 0);
+ struct yasl_event event;
+ assert(wayland_surface_poll_event(&w, &event));
+ assert(event.type == YASL_EVENT_TEXT && event.surface == &w.base);
+ assert(strcmp(event.text.data, text) == 0);
}
input_queue_clear(&w.input);
return 0;