winsys-glx: map X window automatically if not foreign
authorRobert Bragg <robert@linux.intel.com>
Mon, 18 Apr 2011 15:26:17 +0000 (16:26 +0100)
committerRobert Bragg <robert@linux.intel.com>
Thu, 5 May 2011 13:46:03 +0000 (14:46 +0100)
commit799caeb588973ea4b64003efc31c9853a05d8f73
tree8b9f2d5c77561a5f3c45fafcda8d08f6d9e4371d
parent27770b913fa830140093347b919eb385c74694ec
winsys-glx: map X window automatically if not foreign

For now we are going for the semantics that when a CoglOnscreen is first
allocated then it will automatically be mapped. This is for convenience
and if you don't want that behaviour then it is possible to instead
create an Onscreen from a foreign X window and in that case it wont be
mapped automatically.

This approach means that Cogl doesn't need onscreen_map/unmap functions
but it's possible we'll decide later that we can't avoid adding such
functions and we'll have to change these semantics.
clutter/cogl/cogl/winsys/cogl-winsys-glx.c