summaryrefslogtreecommitdiff
path: root/cogl/cogl-renderer-private.h
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2011-12-16 18:50:49 +0000
committerNeil Roberts <neil@linux.intel.com>2012-01-05 13:40:24 +0000
commit181b875a3d73860b5568768658d82b7dd7492107 (patch)
treee9c2d30a10bf2483a030866181db7adbf90b9196 /cogl/cogl-renderer-private.h
parent74974752955b8ba0e3e4e5df89ed937bb7397beb (diff)
downloadcogl-181b875a3d73860b5568768658d82b7dd7492107.tar.gz
xlib: Internally retrieve XEvents
Previously we relied on the application to send all X events through Cogl using cogl_xlib_renderer_handle_event. This breaks the abstraction that an application shouldn't need to know what winsys Cogl is using. Now that we have main loop integreation in Cogl, the Xlib-based winsys's can report that Cogl needs to block on the file descriptor of the X connection and it can manually handle the events. The event retrieval can be disabled by an application if it calls the new cogl_xlib_renderer_set_event_retrieval_enabled() function. The event retrieval will also automatically be disabled if the application sets a foreign display. Reviewed-by: Robert Bragg <robert@linux.intel.com>
Diffstat (limited to 'cogl/cogl-renderer-private.h')
-rw-r--r--cogl/cogl-renderer-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cogl/cogl-renderer-private.h b/cogl/cogl-renderer-private.h
index 2f7aaf10..47c0667e 100644
--- a/cogl/cogl-renderer-private.h
+++ b/cogl/cogl-renderer-private.h
@@ -46,6 +46,7 @@ struct _CoglRenderer
CoglWinsysID winsys_id_override;
#ifdef COGL_HAS_XLIB_SUPPORT
Display *foreign_xdpy;
+ gboolean xlib_enable_event_retrieval;
#endif
CoglDriver driver;