mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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:
parent
134765c634
commit
ac502c921d
@ -813,9 +813,9 @@ meta_input_settings_x11_set_stylus_pressure (MetaInputSettings *settings,
|
|||||||
ClutterInputDeviceTool *tool,
|
ClutterInputDeviceTool *tool,
|
||||||
const gint32 pressure[4])
|
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));
|
&values, G_N_ELEMENTS (values));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user