diff options
author | Bastien Nocera <hadess@hadess.net> | 2012-05-02 16:57:04 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2012-05-02 16:57:04 +0100 |
commit | 17eb272e0cc6dd8404d210770ab9c2c0c9624a09 (patch) | |
tree | fb31de907ccba61034f03a11ef928bc312112a0a | |
parent | e07d1af4eb755175339cb6fa8cf6ba169991b65f (diff) | |
download | libwacom-17eb272e0cc6dd8404d210770ab9c2c0c9624a09.tar.gz |
lib: Fix generic stylus missing an eraser
HasEraser=yes, but we didn't add an eraser for the stylus,
leading to bugs in the display UI for consumer products.
https://bugzilla.gnome.org/show_bug.cgi?id=675299
-rw-r--r-- | libwacom/libwacom-database.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libwacom/libwacom-database.c b/libwacom/libwacom-database.c index 0c60d6d..9fc9e35 100644 --- a/libwacom/libwacom-database.c +++ b/libwacom/libwacom-database.c @@ -369,9 +369,10 @@ libwacom_parse_tablet_keyfile(const char *path) g_strfreev (styli_list); device->supported_styli = (int *) g_array_free (array, FALSE); } else { - device->supported_styli = g_new (int, 1); - *device->supported_styli = 0xfffff; - device->num_styli = 1; + device->supported_styli = g_new (int, 2); + device->supported_styli[0] = WACOM_STYLUS_FALLBACK_ID; + device->supported_styli[1] = WACOM_ERASER_FALLBACK_ID; + device->num_styli = 2; } /* Features */ |