aboutsummaryrefslogtreecommitdiffstats
path: root/src/event-loop.c
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2012-03-13 13:16:13 +0200
committerKristian Høgsberg <krh@bitplanet.net>2012-03-20 15:15:19 -0400
commit3c5d9694db6f8bcbebc9a8d1ae3afd8e61530089 (patch)
tree5ef5b340b30efbff764b989201b8bd651b3f1251 /src/event-loop.c
parentTODO: Pull in updated TODO list from 1.0 roadmap email (diff)
downloadwayland-3c5d9694db6f8bcbebc9a8d1ae3afd8e61530089.tar
wayland-3c5d9694db6f8bcbebc9a8d1ae3afd8e61530089.tar.gz
wayland-3c5d9694db6f8bcbebc9a8d1ae3afd8e61530089.tar.bz2
wayland-3c5d9694db6f8bcbebc9a8d1ae3afd8e61530089.tar.lz
wayland-3c5d9694db6f8bcbebc9a8d1ae3afd8e61530089.tar.xz
wayland-3c5d9694db6f8bcbebc9a8d1ae3afd8e61530089.tar.zst
wayland-3c5d9694db6f8bcbebc9a8d1ae3afd8e61530089.zip
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.
Diffstat (limited to 'src/event-loop.c')
-rw-r--r--src/event-loop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/event-loop.c b/src/event-loop.c
index 2dfe0ae..da7b02b 100644
--- a/src/event-loop.c
+++ b/src/event-loop.c
@@ -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;
}