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.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 26b65de..a5ab4c2 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -2257,6 +2257,10 @@ tp_init(struct tp_dispatch *tp, 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)) -- 2.9.3 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel