Adds a way for Cogl to control event_mask of foreign wins
authorRobert Bragg <robert@linux.intel.com>
Wed, 4 May 2011 16:02:04 +0000 (17:02 +0100)
committerRobert Bragg <robert@linux.intel.com>
Thu, 5 May 2011 14:05:42 +0000 (15:05 +0100)
commit4d3bf09e60af216774d5b1ec118f420ee0b7137b
tree602c2a1dffe6b74a7cd28453921bbc9806a851da
parent50d688399bf4b1e31486f7e2b659f26994f78348
Adds a way for Cogl to control event_mask of foreign wins

This extends cogl_onscreen_x11_set_foreign_xid to take a callback to a
function that details the event mask the Cogl requires the application
to select on foreign windows. This is required because Cogl, for
example, needs to track size changes of a window and may also in the
future want other notifications such as map/unmap.

Most applications wont need to use the foreign xwindow apis, but those
that do are required to pass a valid callback and update the event mask
of their window according to Cogl's requirements.
clutter/cogl/cogl/cogl-framebuffer-private.h
clutter/cogl/cogl/cogl-framebuffer.c
clutter/cogl/cogl/cogl-framebuffer.h
clutter/cogl/cogl/winsys/cogl-winsys-egl.c
clutter/cogl/cogl/winsys/cogl-winsys-glx.c
clutter/cogl/examples/x11-foreign.c
clutter/glx/clutter-stage-glx.c
clutter/x11/clutter-stage-x11.c
clutter/x11/clutter-stage-x11.h