[PATCH libinput 3/5] Change touch event slots from being unsigned to signed

Jonas Ådahl jadahl at gmail.com
Wed Feb 12 12:36:40 PST 2014


Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
---
 src/libinput.c | 4 ++--
 src/libinput.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libinput.c b/src/libinput.c
index a5fb0dd..465913b 100644
--- a/src/libinput.c
+++ b/src/libinput.c
@@ -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;
diff --git a/src/libinput.h b/src/libinput.h
index 4b0680c..b5e881a 100644
--- a/src/libinput.h
+++ b/src/libinput.h
@@ -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);
 
 /**
-- 
1.8.3.2



More information about the wayland-devel mailing list