XI2 = moving target?
peter.hutterer at who-t.net
Sun Jul 26 17:47:33 PDT 2009
On Sun, Jul 26, 2009 at 06:47:44PM +0200, Florian Echtler wrote:
> > > - What's the purpose of using XGetEventData now instead of plain
> > > GenericEvents?
> > libX11 has an internal maximum size for events which was the cause for
> > events having to store pointers to external memory locations. this exposed a
> > huge memory leak in naive applications, the cookie approach with
> > XGetEventData was the simplest approach to avoid the leaks and yet be
> > generic for all extensions.
> > The commit message for XGetEventData is quite extensive and explains it in
> > more detail.
> Thanks, I see. Is it mandatory to check for cookie->extension?
yes. event opcodes are only unique within the extension so if in the future
other extensions add support for generic events you'll have overlapping
opcodes and fun things will happen.
> > > - When will the XI2 API be finalized?
> > I think it is now, though I have to have a final glossover on monday to make
> > sure I didn't forget anything.
> Perfect, good to know. I'll re-post the updated patch on Tuesday then;
> FreeGLUT doesn't use git and they won't integrate the patch, so that's
> IMHO the best way to make it public.
More information about the xorg