mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-03-24 01:24:04 +00:00
Change the touch IDs to uints
Better overflow behavior, not that we're likely to trigger it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -582,8 +582,8 @@ xf86libinput_handle_touch(InputInfoPtr pInfo,
|
||||
|
||||
/* libinput doesn't give us hw touch ids which X expects, so
|
||||
emulate them here */
|
||||
static int next_touchid;
|
||||
static int touchids[TOUCH_MAX_SLOTS] = {0};
|
||||
static unsigned int next_touchid;
|
||||
static unsigned int touchids[TOUCH_MAX_SLOTS] = {0};
|
||||
|
||||
slot = libinput_event_touch_get_slot(event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user