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

Julien Cristau jcristau at debian.org
Wed Jan 6 06:45:53 PST 2010


Hi Peter,

On Wed, Dec  9, 2009 at 14:06:36 +1000, Peter Hutterer wrote:

> +        switch(extversion->minor_version)
> +        {
> +            case XI_Add_DeviceProperties_Minor:
> +                nevents = XI_DevicePropertyNotify - 1;
> +                break;
> +            case  XI_Add_DevicePresenceNotify_Minor:
> +                nevents = XI_DevicePresenceNotify - 1;
> +                break;
> +            default:
> +                nevents = XI_DeviceButtonstateNotify - 1;
> +                break;
> +        }

All these "- 1" should be "+ 1".  The rest looks good to me.

Thanks,
Julien


More information about the xorg-devel mailing list