This has no real effect just yet because we don't use a touchpad's dpi
anywhere in the touchpad code. Only the acceleration code wants it but all
touchpads use the same acceleration method, and that one doesn't care about
the dpi.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
EV_ABS,
ABS_MT_DISTANCE);
+ /* Set the dpi to that of the x axis, because that's what we normalize
+ to when needed*/
+ device->dpi = device->abs.absinfo_x->resolution * 25.4;
+
tp_init_hysteresis(tp);
if (!tp_init_accel(tp))