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

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