evdev: always store user calibration matrix
authorBrian Ashworth <bosrsf04@gmail.com>
Sun, 4 Aug 2019 15:48:28 +0000 (11:48 -0400)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 4 Aug 2019 23:58:06 +0000 (09:58 +1000)
commit801485afda09e5fcf8b2fda59292f496d71d02ae
tree6eefb8593b3b3d219ad67cbd1f9e8d4d993ab9ab
parentf5fc850a0805045964c9056c4b91e161ab70d5bd
evdev: always store user calibration matrix

In evdev_device_calibrate, the user matrix was not being stored when it
was the identity matrix. This resulted in
libinput_device_config_calibration_get_matrix not providing the correct
matrix. Instead of giving the identity matrix, the last non-identity
matrix set was given.

This just moves the storage of the user matrix in
evdev_device_calibrate to be above the identity matrix early return so
that it always get stored.

Signed-off-by: Brian Ashworth <bosrsf04@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev.c
test/test-touch.c