backends/x11: wacom pressure curve is a 32-bit property

The property has been 32 bits since around 2011 and has not changed, mutter
expects it to be 8 bits. The mismatch causes change_property to never
actually change the property.

https://gitlab.gnome.org/GNOME/mutter/issues/26

Closes: #26
This commit is contained in:
Peter Hutterer 2018-02-09 11:53:17 +10:00 committed by Carlos Garnacho
parent 134765c634
commit ac502c921d

View File

@ -813,9 +813,9 @@ meta_input_settings_x11_set_stylus_pressure (MetaInputSettings *settings,
ClutterInputDeviceTool *tool,
const gint32 pressure[4])
{
guchar values[4] = { pressure[0], pressure[1], pressure[2], pressure[3] };
guint32 values[4] = { pressure[0], pressure[1], pressure[2], pressure[3] };
change_property (device, "Wacom Pressurecurve", XA_INTEGER, 8,
change_property (device, "Wacom Pressurecurve", XA_INTEGER, 32,
&values, G_N_ELEMENTS (values));
}