[PATCH v2 libXi] Initialize extension with the right number of events.

Julien Cristau jcristau at debian.org
Fri Feb 19 06:36:18 PST 2010


On Fri, Feb 19, 2010 at 15:25:57 +1000, Peter Hutterer wrote:

> If the server supports a lower XI version than the client, the Xlib-internal
> event vector may be smashed. See libXext for more details.
> http://cgit.freedesktop.org/xorg/lib/libXext/commit/?id=83fdb27df4ddc2fb088ddf2ec65f0db6b7c57287
> 
> This patch queries the server for the supported XI extension before
> registering the extension with Xlib. The number of events registered depends
> on the server version.
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Reviewed-by: Julien Cristau <jcristau at debian.org>

> ---
> how about this one? (compile-tested only but should get around the qt3
> issue).

Yep, avoids the segfault.  Thanks!

Cheers,
Julien


More information about the xorg-devel mailing list