mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-05 06:20:26 +01:00
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:
parent
f583cb7f6c
commit
3a3a0c87a7
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue