types/wlr_tablet_tool: remove name ambiguity

It wasn't clear in the backend whether to use name or base.name, change
it so base.name has to be used.

Fixes https://github.com/swaywm/sway/issues/6884
This commit is contained in:
David96 2022-03-11 11:47:56 +01:00
parent 13fcdba75c
commit 7a2c96dcbd
3 changed files with 4 additions and 5 deletions

View file

@ -108,9 +108,9 @@ void add_tablet_client(struct wlr_tablet_seat_client_v2 *seat,
zwp_tablet_seat_v2_send_tablet_added(seat->resource, client->resource);
// Send the expected events
if (tablet->wlr_tablet->name) {
if (tablet->wlr_tablet->base.name) {
zwp_tablet_v2_send_name(client->resource,
tablet->wlr_tablet->name);
tablet->wlr_tablet->base.name);
}
zwp_tablet_v2_send_id(client->resource,
tablet->wlr_device->vendor, tablet->wlr_device->product);