[PATCH] tests: Fix event-test

Kristian Høgsberg hoegsberg at gmail.com
Tue May 15 08:23:54 PDT 2012


On Tue, May 15, 2012 at 02:32:05PM +0300, Ander Conselvan de Oliveira wrote:
> notify_motion() now receives coordinates in wl_fixed_t but the test was
> still passing integers.

Thanks, committed.
Kristian

> ---
>  tests/event-test.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/tests/event-test.c b/tests/event-test.c
> index 737e227..e89d5aa 100644
> --- a/tests/event-test.c
> +++ b/tests/event-test.c
> @@ -56,7 +56,8 @@ handle_surface(struct test_client *client)
>  	device = client->compositor->input_device;
>  	client->compositor->focus = 1; /* Make it work even if pointer is
>  					* outside X window. */
> -	notify_motion(device, 100, 150, 150);
> +	notify_motion(device, 100,
> +		      wl_fixed_from_int(150), wl_fixed_from_int(150));
>  
>  	test_client_send(client, "bye\n");
>  }
> -- 
> 1.7.4.1
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list