diff options
author | Neil Roberts <neil@linux.intel.com> | 2013-07-04 13:14:04 +0100 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2013-07-09 15:46:46 +0100 |
commit | 3d9eaef3acd9e55ae9c4e8afeca9300371f805a6 (patch) | |
tree | 24aa31621dc2ed608aa517a521709eaf9291bfc4 /cogl/cogl-renderer.c | |
parent | 18ce7ad7f5969fe10b7fd0c5177616167919d2f5 (diff) | |
download | cogl-3d9eaef3acd9e55ae9c4e8afeca9300371f805a6.tar.gz |
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)
Diffstat (limited to 'cogl/cogl-renderer.c')
-rw-r--r-- | cogl/cogl-renderer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cogl/cogl-renderer.c b/cogl/cogl-renderer.c index e3008db7..41b1eaa4 100644 --- a/cogl/cogl-renderer.c +++ b/cogl/cogl-renderer.c @@ -197,6 +197,10 @@ cogl_renderer_new (void) renderer->win32_enable_event_retrieval = TRUE; #endif +#ifdef COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT + renderer->wayland_enable_event_dispatch = TRUE; +#endif + return _cogl_renderer_object_new (renderer); } |