• David Herrmann's avatar
    event-loop: export wl_event_loop_dispatch_idle() · 003a946a
    David Herrmann authored
    When integrating the wayland event-loop into another event-loop, we
    currently have no chance of checking whether there are pending idle
    sources that have to be called. This patch exports the
    "dispatch_idle_sources()" call so other event loops can call this before
    going to sleep. This is what wl_event_loop_dispatch() currently does so we
    simply allow external event-loops to do the same now.
    
    To avoid breaking existing applications, we keep the call to
    dispatch_idle_sources() in wl_event_loop_dispatch() for now. However, if
    we want we can remove this later and require every application to call
    this manually. This needs to be discussed, but the overhead is negligible
    so we will probably leave it as it is.
    
    This finally allows to fully integrate the wayland-server API into
    existing event-loops without any nasty workarounds.
    Signed-off-by: default avatarDavid Herrmann <dh.herrmann@googlemail.com>
    003a946a
Name
Last commit
Last update
..
.gitignore Loading commit data...
Makefile.am Loading commit data...
connection.c Loading commit data...
data-device.c Loading commit data...
event-loop.c Loading commit data...
scanner.c Loading commit data...
scanner.mk Loading commit data...
wayland-client-uninstalled.pc.in Loading commit data...
wayland-client.c Loading commit data...
wayland-client.h Loading commit data...
wayland-client.pc.in Loading commit data...
wayland-egl.h Loading commit data...
wayland-os.c Loading commit data...
wayland-os.h Loading commit data...
wayland-private.h Loading commit data...
wayland-server-uninstalled.pc.in Loading commit data...
wayland-server.c Loading commit data...
wayland-server.h Loading commit data...
wayland-server.pc.in Loading commit data...
wayland-shm.c Loading commit data...
wayland-util.c Loading commit data...
wayland-util.h Loading commit data...
wayland-version.h.in Loading commit data...