Skip to content

evdev: always store user calibration matrix

Brian Ashworth requested to merge redsoxfan/libinput:always-store-matrix into master

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.

Related Sway issue: https://github.com/swaywm/sway/issues/4409

Signed-off-by: Brian Ashworth bosrsf04@gmail.com

Merge request reports