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-private.h | |
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-private.h')
-rw-r--r-- | cogl/cogl-renderer-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cogl/cogl-renderer-private.h b/cogl/cogl-renderer-private.h index 75ae1493..3e2601f6 100644 --- a/cogl/cogl-renderer-private.h +++ b/cogl/cogl-renderer-private.h @@ -76,6 +76,7 @@ struct _CoglRenderer #if defined (COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT) struct wl_display *foreign_wayland_display; + CoglBool wayland_enable_event_dispatch; #endif #ifdef COGL_HAS_SDL_SUPPORT |