Convert internal input co-ordinates to GLfloat
Change all client motion handlers to take GLfloat for co-ordinates,
rather than int32_t.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
diff --git a/clients/dnd.c b/clients/dnd.c
index 54fc1f2..c2975d5 100644
--- a/clients/dnd.c
+++ b/clients/dnd.c
@@ -450,7 +450,7 @@
static int
dnd_enter_handler(struct widget *widget,
- struct input *input, int32_t x, int32_t y, void *data)
+ struct input *input, GLfloat x, GLfloat y, void *data)
{
return lookup_cursor(data, x, y);
}
@@ -458,7 +458,7 @@
static int
dnd_motion_handler(struct widget *widget,
struct input *input, uint32_t time,
- int32_t x, int32_t y, void *data)
+ GLfloat x, GLfloat y, void *data)
{
return lookup_cursor(data, x, y);
}
@@ -466,7 +466,7 @@
static void
dnd_data_handler(struct window *window,
struct input *input,
- int32_t x, int32_t y, const char **types, void *data)
+ GLfloat x, GLfloat y, const char **types, void *data)
{
struct dnd *dnd = data;