[gnome-control-center/wip/carlosg/ekr-loves-27qhd: 5/5] wacom: Group pad/stylus devices together with the group name
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/carlosg/ekr-loves-27qhd: 5/5] wacom: Group pad/stylus devices together with the group name
- Date: Fri, 4 Sep 2020 21:46:22 +0000 (UTC)
commit 297906685e3fac790f07cd7b3277c0f1c452650b
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Dec 5 15:56:39 2019 +0100
wacom: Group pad/stylus devices together with the group name
This will cover the regular case of pads attached to a tablet, but
also the EKR case where the pad is a separate device logically
grouped with a tablet.
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/415
panels/wacom/cc-wacom-page.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-page.c b/panels/wacom/cc-wacom-page.c
index 2ab4b6125..b85bce75e 100644
--- a/panels/wacom/cc-wacom-page.c
+++ b/panels/wacom/cc-wacom-page.c
@@ -918,12 +918,12 @@ check_add_pad (CcWacomPage *page,
if ((gsd_device_get_device_type (gsd_device) & GSD_DEVICE_TYPE_PAD) == 0)
return;
- wacom_device = cc_wacom_device_new (gsd_device);
- if (!wacom_device)
+ if (!gsd_device_shares_group (cc_wacom_device_get_device (page->stylus),
+ gsd_device))
return;
- if (g_strcmp0 (cc_wacom_device_get_name (page->stylus),
- cc_wacom_device_get_name (wacom_device)) != 0)
+ wacom_device = cc_wacom_device_new (gsd_device);
+ if (!wacom_device)
return;
page->pads = g_list_prepend (page->pads, g_steal_pointer (&wacom_device));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]