weston: add touchscreen_calibrator option
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>
Fri, 15 Dec 2017 07:02:56 +0000 (02:02 -0500)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 30 May 2018 11:46:24 +0000 (14:46 +0300)
commit5a1b0cf0e76d01478dbfb76009d8e986fbe83e4b
tree566beae870593fb6d6e0e6d071f5a9c31b91d4ba
parent83630983ad5335d8a28a9a86ee9b0e9a682d6643
weston: add touchscreen_calibrator option

Add an option to enable the touchscreen calibrator interface. This is a
global on/off toggle, in lack of more fine-grained access restrictions.

As Weston should not hardcode system specifics, the actual permanent
saving of a new calibration is left for a user supplied script or a
program. Usually this script would write an appropriate udev rule to set
LIBINPUT_CALIBRATION_MATRIX for the touch device.

Co-developed by Louis-Francis and Pekka.

v2:
- use syspath instead of devpath

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
v1 Tested-by: Matt Hoosier <matt.hoosier@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
compositor/main.c
man/weston.ini.man