[PATCH 27/42] dix: add helper functions for adding/removing touch listeners

Fernando Carrijo fcarrijo at freedesktop.org
Thu Dec 15 07:40:48 PST 2011


Peter Hutterer <peter.hutterer at who-t.net> wrote:

> +static void
> +TouchAddActiveGrabListener(DeviceIntPtr dev, TouchPointInfoPtr ti,
> +                           InternalEvent *ev, GrabPtr grab)
> +{
> +    if (!ti->emulate_pointer &&
> +        (grab->grabtype == CORE || grab->grabtype == XI))
> +        return;
> +
> +    if (!ti->emulate_pointer &&
> +        grab->grabtype == XI2 &&
> +        (grab->type != XI_TouchBegin && grab->type == XI_TouchEnd && grab->type == XI_TouchUpdate))

The above line seems suspicious.

> +        return;
> +
> +    TouchAddGrabListener(dev, ti, ev, grab);
> +}


More information about the xorg-devel mailing list