Change touch event slots from being unsigned to signed
authorJonas Ådahl <jadahl@gmail.com>
Wed, 12 Feb 2014 19:52:14 +0000 (20:52 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 17 Feb 2014 19:12:19 +0000 (20:12 +0100)
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
src/libinput.c
src/libinput.h

index a5fb0dd3ed7bbae6e27a38423c7ca81c9928bbbc..465913b832a462193fd17167710529c5687a1d3c 100644 (file)
@@ -71,7 +71,7 @@ struct libinput_event_pointer {
 struct libinput_event_touch {
        struct libinput_event base;
        uint32_t time;
-       uint32_t slot;
+       int32_t slot;
        li_fixed_t x;
        li_fixed_t y;
        enum libinput_touch_type touch_type;
@@ -289,7 +289,7 @@ libinput_event_touch_get_time(struct libinput_event_touch *event)
        return event->time;
 }
 
-LIBINPUT_EXPORT uint32_t
+LIBINPUT_EXPORT int32_t
 libinput_event_touch_get_slot(struct libinput_event_touch *event)
 {
        return event->slot;
index 4b0680c929a00827ca66c1d04c7449c365e9c512..b5e881ad9bc8b28dfd6e8968bf3760b16bacd384 100644 (file)
@@ -562,7 +562,7 @@ libinput_event_touch_get_time(struct libinput_event_touch *event);
  *
  * @return The slot of this touch event
  */
-uint32_t
+int32_t
 libinput_event_touch_get_slot(struct libinput_event_touch *event);
 
 /**