libinput_dispatch: return -EAGAIN if no events are ready

Notify the caller that no events are currently ready to be processed.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2013-12-05 17:33:47 +10:00
parent f583cb7f6c
commit 3a3a0c87a7

View file

@ -227,7 +227,7 @@ libinput_dispatch(struct libinput *libinput)
free(source);
list_init(&libinput->source_destroy_list);
return 0;
return libinput->events_count > 0 ? 0 : -EAGAIN;
}
static void