[PATCH synaptics 1/4] eventcomm: fix wrong event code for SYN_REPORT

Benjamin Tissoires benjamin.tissoires at gmail.com
Tue Mar 11 10:10:25 PDT 2014


On Tue, Mar 11, 2014 at 1:27 AM, Peter Hutterer
<peter.hutterer at who-t.net> wrote:
> This was supposed to emulate a SYN_REPORT event so that the upper layers
> process what's in the queue.
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
>  src/eventcomm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/eventcomm.c b/src/eventcomm.c
> index fb4181e..82f620d 100644
> --- a/src/eventcomm.c
> +++ b/src/eventcomm.c
> @@ -526,7 +526,7 @@ SynapticsReadEvent(InputInfoPtr pInfo, struct input_event *ev)
>                  proto_data->read_flag == LIBEVDEV_READ_FLAG_NORMAL) {
>                  proto_data->read_flag = LIBEVDEV_READ_FLAG_SYNC;
>                  ev->type = EV_SYN;
> -                ev->code = SYN_DROPPED;
> +                ev->code = SYN_REPORT;

yeah! that fix a compile bug under RHEL 6

Cheers,
Benjamin

>                  ev->value = 0;
>                  ev->time = last_event_time;
>              } else if (ev->type == EV_SYN)
> --
> 1.8.5.3
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel


More information about the xorg-devel mailing list