glx: Always request an ARGB visual
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 1 Dec 2009 16:18:39 +0000 (16:18 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 1 Dec 2009 16:25:54 +0000 (16:25 +0000)
commite6ca2d891a2c48c91db45a0c2f5ce84d5e6621e1
tree10c0ac3d517b5627504b40907be055142335bc7c
parent2f7ff4d3e363a0568e4051ab67c0df6f745d06d2
glx: Always request an ARGB visual

When requesting the GLXFBConfig for creating the GLX context, we should
always request one that links to an ARGB visual instead of a plain RGB
one.

By using an ARGB visual we allow the ClutterStage:use-alpha property to
work as intended when running Clutter under a compositing manager.

The default behaviour of requesting an ARGB visual can be disabled by
using the:

  CLUTTER_DISABLE_ARGB_VISUAL

Environment variable.
clutter/glx/clutter-backend-glx.c
clutter/glx/clutter-backend-glx.h
clutter/glx/clutter-glx.h
clutter/glx/clutter-stage-glx.c
clutter/x11/clutter-backend-x11.c
clutter/x11/clutter-x11.h