You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.4 KiB
35 lines
1.4 KiB
From ac502c921d2e813e6e916a589a07bc58ca4c12e7 Mon Sep 17 00:00:00 2001 |
|
From: Peter Hutterer <peter.hutterer@who-t.net> |
|
Date: Fri, 9 Feb 2018 11:53:17 +1000 |
|
Subject: [PATCH] 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 |
|
--- |
|
src/backends/x11/meta-input-settings-x11.c | 4 ++-- |
|
1 file 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)); |
|
} |
|
|
|
-- |
|
2.16.1 |
|
|
|
|