From 11ee3ae5b55917b84def0fc72e355e197a3289ee Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 29 Feb 2024 12:20:36 +0100 Subject: [PATCH] tablet-v2: use wlr_tablet.usb_{vendor,product}_id --- types/tablet_v2/wlr_tablet_v2_tablet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/tablet_v2/wlr_tablet_v2_tablet.c b/types/tablet_v2/wlr_tablet_v2_tablet.c index c2230b39..81ccbbc7 100644 --- a/types/tablet_v2/wlr_tablet_v2_tablet.c +++ b/types/tablet_v2/wlr_tablet_v2_tablet.c @@ -106,9 +106,9 @@ void add_tablet_client(struct wlr_tablet_seat_client_v2 *seat, zwp_tablet_v2_send_name(client->resource, tablet->wlr_tablet->base.name); } - if (tablet->wlr_device->vendor != 0) { + if (tablet->wlr_tablet->usb_vendor_id != 0) { zwp_tablet_v2_send_id(client->resource, - tablet->wlr_device->vendor, tablet->wlr_device->product); + tablet->wlr_tablet->usb_vendor_id, tablet->wlr_tablet->usb_product_id); } const char **path_ptr;