diff --git a/src/libinput.c b/src/libinput.c index 1019e3cc..d653f84b 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -560,7 +560,7 @@ libinput_dispatch(struct libinput *libinput) free(source); list_init(&libinput->source_destroy_list); - return libinput->events_count > 0 ? 0 : -EAGAIN; + return 0; } static void diff --git a/src/libinput.h b/src/libinput.h index cd10b979..b92b2063 100644 --- a/src/libinput.h +++ b/src/libinput.h @@ -466,11 +466,11 @@ libinput_get_fd(struct libinput *libinput); * and processes them internally. Use libinput_get_event() to retrieve the * events. * + * Dispatching does not necessarily queue libinput events. + * * @param libinput A previously initialized libinput context * * @return 0 on success, or a negative errno on failure - * @retval -EAGAIN libinput_dispatch completed successfully but no events - * are ready to read with libinput_get_event() */ int libinput_dispatch(struct libinput *libinput);