diff --git a/src/timer.c b/src/timer.c index b152ae8f..5d9fc512 100644 --- a/src/timer.c +++ b/src/timer.c @@ -145,6 +145,9 @@ libinput_timer_handler(void *data) return; list_for_each_safe(timer, tmp, &libinput->timer.list, link) { + if (timer->expire == 0) + continue; + if (timer->expire <= now) { /* Clear the timer before calling timer_func, as timer_func may re-arm it */