[PATCH libinput 08/11] udev: drop WL_CALIBRATION, replace with LIBINPUT_CALIBRATION_MATRIX

Peter Hutterer peter.hutterer at who-t.net
Tue Aug 26 21:31:39 PDT 2014


WL_CALIBRATION is a weston-specific property that required the translation
component of the matrix to be in pixels. libinput can't provide calibration
based on unknown outputs, so drop support for this property.

The basic functionality is maintained, renaming just makes the change in
behavior more explicit.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
Not sure if we want to do this. I'm somewhat tempted to push all WL_*
property parsing to the compositor and _not_ have a back-channel for
configuration in libinput.
As our brief stint with HAL in Xorg has shown, shoving configuration into a
different project does not make things easier.

 src/udev-seat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/udev-seat.c b/src/udev-seat.c
index 2947e71..d0324dd 100644
--- a/src/udev-seat.c
+++ b/src/udev-seat.c
@@ -90,7 +90,7 @@ device_added(struct udev_device *udev_device, struct udev_input *input)
 
 	calibration_values =
 		udev_device_get_property_value(udev_device,
-					       "WL_CALIBRATION");
+					       "LIBINPUT_CALIBRATION_MATRIX");
 
 	if (calibration_values && sscanf(calibration_values,
 					 "%f %f %f %f %f %f",
-- 
1.9.3



More information about the wayland-devel mailing list