[PATCH evdev] Don't update first_val and num_val if we don't have data (#32480)
Chase Douglas
chase.douglas at canonical.com
Mon Jan 3 07:19:56 PST 2011
On 12/22/2010 09:19 PM, Peter Hutterer wrote:
> For touchpads, rel_queued may be on (due to abs to rel conversion) but the
> delta for x/y is 0/0 on the first touch. Hence, we don't have any valuators
> to post. The current results in a num_vals of -15 and a subsequent segfault
> when the data is posted to the server.
>
> Start with a last valuator of -1, so that we know if we have at least one to
> post.
>
> X.Org Bug 32480 <http://bugs.freedesktop.org/show_bug.cgi?id=32480>
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
Reviewed-by: Chase Douglas <chase.douglas at canonical.com>
More information about the xorg-devel
mailing list