tests: Fix event-test
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Tue, 15 May 2012 11:32:05 +0000 (14:32 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 15 May 2012 14:59:11 +0000 (10:59 -0400)
notify_motion() now receives coordinates in wl_fixed_t but the test was
still passing integers.

tests/event-test.c

index 737e227..e89d5aa 100644 (file)
@@ -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");
 }