[PATCH libinput] touchpad: don't warn about kernel jumps on semi-mt devices

Hans de Goede hdegoede at redhat.com
Fri Jun 10 07:19:00 UTC 2016


Hi,

On 10-06-16 02:42, Peter Hutterer wrote:
> These devices are all over the place anyway, no need to spam the log, just
> silently discard the jumps.
>
> https://bugs.freedesktop.org/show_bug.cgi?id=96275
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Looks good to me:

Reviewed-by: Hans de Goede <hdegoede at redhat.com>

Regards,

Hans


> ---
>  src/evdev-mt-touchpad.c | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
> index 56760dc..d01461c 100644
> --- a/src/evdev-mt-touchpad.c
> +++ b/src/evdev-mt-touchpad.c
> @@ -1002,10 +1002,11 @@ tp_process_state(struct tp_dispatch *tp, uint64_t time)
>  			tp_motion_history_reset(t);
>
>  		if (tp_detect_jumps(tp, t)) {
> -			log_bug_kernel(tp_libinput_context(tp),
> -				       "Touch jump detected and discarded.\n"
> -				       "See %stouchpad_jumping_cursor.html for details\n",
> -				       HTTP_DOC_LINK);
> +			if (!tp->semi_mt)
> +				log_bug_kernel(tp_libinput_context(tp),
> +					       "Touch jump detected and discarded.\n"
> +					       "See %stouchpad_jumping_cursor.html for details\n",
> +					       HTTP_DOC_LINK);
>  			tp_motion_history_reset(t);
>  		}
>
>


More information about the wayland-devel mailing list