diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-02-09 11:53:17 +1000 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2018-02-09 12:28:56 +0100 |
commit | ac502c921d2e813e6e916a589a07bc58ca4c12e7 (patch) | |
tree | 07a5f9ad1ec7a03652b284a2d6bb440016269613 | |
parent | 134765c63479b92b9f1d5e9f302eb0009fb5a009 (diff) | |
download | mutter-ac502c921d2e813e6e916a589a07bc58ca4c12e7.tar.gz |
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
-rw-r--r-- | src/backends/x11/meta-input-settings-x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backends/x11/meta-input-settings-x11.c b/src/backends/x11/meta-input-settings-x11.c index 7d1d360a3..9687fb36f 100644 --- a/src/backends/x11/meta-input-settings-x11.c +++ b/src/backends/x11/meta-input-settings-x11.c @@ -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)); } |