diff options
Diffstat (limited to 'tests/wayland/test_relative_pointer.c')
| -rw-r--r-- | tests/wayland/test_relative_pointer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/wayland/test_relative_pointer.c b/tests/wayland/test_relative_pointer.c index d44238d..81cec2f 100644 --- a/tests/wayland/test_relative_pointer.c +++ b/tests/wayland/test_relative_pointer.c @@ -68,7 +68,7 @@ static void shape_device_destroy(struct wp_cursor_shape_device_v1 *device) { ass static struct yasl_private_event next_event(struct wayland_surface *w) { struct yasl_private_event event; - assert(yasl_private_surface_poll_event(&w->base, &event)); + assert(input_queue_pop(&w->input, &event)); return event; } @@ -121,7 +121,7 @@ int main(void) event = next_event(&surface); assert(event.pointer.pos.x == 14 && event.pointer.pos.y == 10); assert(event.pointer.delta.x == 4 && event.pointer.delta.y == 0); - assert(!yasl_private_surface_poll_event(&surface.base, &event)); + assert(!input_queue_pop(&surface.input, &event)); /* Locked: relative samples in device pixels, position frozen at the lock. */ pointer_locked(&surface, surface.pointer_lock); @@ -137,7 +137,7 @@ int main(void) /* Deactivation (e.g. focus loss) returns to absolute motion without unlocking. */ pointer_unlocked(&surface, surface.pointer_lock); relative_move(&seat, 5, 5); - assert(!yasl_private_surface_poll_event(&surface.base, &event)); + assert(!input_queue_pop(&surface.input, &event)); move_to(&seat, 8, 5); event = next_event(&surface); assert(event.pointer.delta.x == 2 && event.pointer.delta.y == 0); |
