Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8be3c650 authored by Daniel Kurtz's avatar Daniel Kurtz Committed by Dmitry Torokhov
Browse files

Input: synaptics - set resolution for MT_POSITION_X/Y axes



Set resolution for MT_POSITION_X and MT_POSITION_Y to match ABS_X and
ABS_Y, respectively.

Signed-off-by: default avatarDaniel Kurtz <djkurtz@chromium.org>
Acked-by: default avatarChase Douglas <chase.douglas@canonical.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 84460014
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -701,6 +701,9 @@ static void set_input_params(struct input_dev *dev, struct synaptics_data *priv)
				     priv->x_max ?: XMAX_NOMINAL, 0, 0);
		input_set_abs_params(dev, ABS_MT_POSITION_Y, YMIN_NOMINAL,
				     priv->y_max ?: YMAX_NOMINAL, 0, 0);

		input_abs_set_res(dev, ABS_MT_POSITION_X, priv->x_res);
		input_abs_set_res(dev, ABS_MT_POSITION_Y, priv->y_res);
	}

	if (SYN_CAP_PALMDETECT(priv->capabilities))