mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-09 13:29:48 -05:00
Make the server event loop embeddable
By exposing the epoll fd, we can embed the server event loop in other main loops suchs as Qt or GTK+.
This commit is contained in:
parent
67f4ffdf03
commit
b163cef6e7
3 changed files with 19 additions and 31 deletions
|
|
@ -436,7 +436,7 @@ WL_EXPORT void
|
|||
wl_display_run(struct wl_display *display)
|
||||
{
|
||||
while (1)
|
||||
wl_event_loop_wait(display->loop);
|
||||
wl_event_loop_dispatch(display->loop, -1);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue