[PATCH 1/2] glx: Enforce a 1:1 correspondence between GLX and X11 windows.

Keith Packard keithp at keithp.com
Thu Apr 8 18:02:14 PDT 2010


On Thu,  8 Apr 2010 20:06:40 -0400, Kristian Høgsberg <krh at bitplanet.net> wrote:

> +static int glxWindowPrivateKeyIndex;
> +static DevPrivateKey glxWindowPrivateKey = &glxWindowPrivateKeyIndex;

Because there doesn't appear to be any performance critical use for this
object, it should be in the resource database keyed off the window id
using a new resource type. That will automatically get destroyed when
the window is destroyed, which seems like exactly the semantic you desire.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100408/9a0639fc/attachment.pgp>


More information about the xorg-devel mailing list