[PATCH libinput 1/4] touchpad: replace hardcoded resolution > 1
Hans de Goede
hdegoede at redhat.com
Wed Jun 3 00:27:55 PDT 2015
Hi,
On 03-06-15 07:51, Peter Hutterer wrote:
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
LGTM: Reviewed-by: Hans de Goede <hdegoede at redhat.com>
Regards,
Hans
> ---
> src/evdev-mt-touchpad.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
> index aa9fa57..24f33f4 100644
> --- a/src/evdev-mt-touchpad.c
> +++ b/src/evdev-mt-touchpad.c
> @@ -1273,7 +1273,7 @@ tp_init_accel(struct tp_dispatch *tp, double diagonal)
> * and y resolution, so that a circle on the
> * touchpad does not turn into an elipse on the screen.
> */
> - if (res_x > 1 && res_y > 1) {
> + if (!tp->device->abs.fake_resolution) {
> tp->accel.x_scale_coeff = (DEFAULT_MOUSE_DPI/25.4) / res_x;
> tp->accel.y_scale_coeff = (DEFAULT_MOUSE_DPI/25.4) / res_y;
> } else {
>
More information about the wayland-devel
mailing list