mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
event-loop: always do the post-dispatch check
The post-dispatch check on wl_event_loop_dispatch() was not being run if epoll_wait returned 0 events, making the check unreliable.
This commit is contained in:
parent
d4ae9fb5f8
commit
3c5d9694db
1 changed files with 2 additions and 1 deletions
|
|
@ -462,8 +462,9 @@ wl_event_loop_dispatch(struct wl_event_loop *loop, int timeout)
|
|||
n += source->interface->dispatch(source, &ep[i]);
|
||||
}
|
||||
|
||||
while (n > 0)
|
||||
do {
|
||||
n = post_dispatch_check(loop);
|
||||
} while (n > 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue