wayland: Add API to prevent Cogl from dispatching the wayland display

This adds cogl_wayland_renderer_set_event_dispatch_enabled() which can
be used to prevent Cogl from adding the socket for the Wayland display
to its list of file descriptors to poll. This can be used in
applications that want to integrate Cogl with existing code that is
reading from the Wayland socket itself.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit f5b8d98676ab3e90ad80459019c737ec2ff90aa4)
This commit is contained in:
Neil Roberts
2013-07-04 13:14:04 +01:00
parent 18ce7ad7f5
commit 3d9eaef3ac
5 changed files with 48 additions and 7 deletions

View File

@ -89,6 +89,7 @@ cogl_win32_renderer_set_event_retrieval_enabled
<SUBSECTION>
cogl_wayland_renderer_set_foreign_display
cogl_wayland_renderer_set_event_dispatch_enabled
cogl_wayland_renderer_get_display
</SECTION>