Skip to content

evdev: always store user calibration matrix

Peter Hutterer requested to merge whot/libinput:wip/calibration-tests into master

Supersedes !272 (closed), same commit but with a test case added. Original commit message:

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.

Merge request reports