mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 21:40:40 +01:00
touchpad: handle_timeouts: Remove unused return value
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
a70ef98d57
commit
ed6ccad449
1 changed files with 1 additions and 6 deletions
|
|
@ -343,22 +343,17 @@ tp_button_handle_state(struct tp_dispatch *tp, uint32_t time)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
tp_button_handle_timeout(struct tp_dispatch *tp, uint32_t now)
|
||||
{
|
||||
struct tp_touch *t;
|
||||
uint32_t min_timeout = INT_MAX;
|
||||
|
||||
tp_for_each_touch(tp, t) {
|
||||
if (t->button.timeout != 0 && t->button.timeout <= now) {
|
||||
tp_button_clear_timer(tp, t);
|
||||
tp_button_handle_event(tp, t, BUTTON_EVENT_TIMEOUT, now);
|
||||
}
|
||||
if (t->button.timeout != 0)
|
||||
min_timeout = min(t->button.timeout, min_timeout);
|
||||
}
|
||||
|
||||
return min_timeout == INT_MAX ? 0 : min_timeout;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue