Blame SOURCES/0001-backends-x11-wacom-pressure-curve-is-a-32-bit-proper.patch

e3f29c
From ac502c921d2e813e6e916a589a07bc58ca4c12e7 Mon Sep 17 00:00:00 2001
e3f29c
From: Peter Hutterer <peter.hutterer@who-t.net>
e3f29c
Date: Fri, 9 Feb 2018 11:53:17 +1000
e3f29c
Subject: [PATCH] backends/x11: wacom pressure curve is a 32-bit property
e3f29c
e3f29c
The property has been 32 bits since around 2011 and has not changed, mutter
e3f29c
expects it to be 8 bits. The mismatch causes change_property to never
e3f29c
actually change the property.
e3f29c
e3f29c
https://gitlab.gnome.org/GNOME/mutter/issues/26
e3f29c
e3f29c
Closes: #26
e3f29c
---
e3f29c
 src/backends/x11/meta-input-settings-x11.c | 4 ++--
e3f29c
 1 file changed, 2 insertions(+), 2 deletions(-)
e3f29c
e3f29c
diff --git a/src/backends/x11/meta-input-settings-x11.c b/src/backends/x11/meta-input-settings-x11.c
e3f29c
index 7d1d360a3..9687fb36f 100644
e3f29c
--- a/src/backends/x11/meta-input-settings-x11.c
e3f29c
+++ b/src/backends/x11/meta-input-settings-x11.c
e3f29c
@@ -813,9 +813,9 @@ meta_input_settings_x11_set_stylus_pressure (MetaInputSettings      *settings,
e3f29c
                                              ClutterInputDeviceTool *tool,
e3f29c
                                              const gint32            pressure[4])
e3f29c
 {
e3f29c
-  guchar values[4] = { pressure[0], pressure[1], pressure[2], pressure[3] };
e3f29c
+  guint32 values[4] = { pressure[0], pressure[1], pressure[2], pressure[3] };
e3f29c
 
e3f29c
-  change_property (device, "Wacom Pressurecurve", XA_INTEGER, 8,
e3f29c
+  change_property (device, "Wacom Pressurecurve", XA_INTEGER, 32,
e3f29c
                    &values, G_N_ELEMENTS (values));
e3f29c
 }
e3f29c
 
e3f29c
-- 
e3f29c
2.16.1
e3f29c