|
|
@ -102,13 +102,14 @@ void add_tablet_client(struct wlr_tablet_seat_client_v2 *seat,
|
|
|
|
client, destroy_tablet_v2);
|
|
|
|
client, destroy_tablet_v2);
|
|
|
|
zwp_tablet_seat_v2_send_tablet_added(seat->resource, client->resource);
|
|
|
|
zwp_tablet_seat_v2_send_tablet_added(seat->resource, client->resource);
|
|
|
|
|
|
|
|
|
|
|
|
// Send the expected events
|
|
|
|
|
|
|
|
if (tablet->wlr_tablet->base.name) {
|
|
|
|
if (tablet->wlr_tablet->base.name) {
|
|
|
|
zwp_tablet_v2_send_name(client->resource,
|
|
|
|
zwp_tablet_v2_send_name(client->resource,
|
|
|
|
tablet->wlr_tablet->base.name);
|
|
|
|
tablet->wlr_tablet->base.name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (tablet->wlr_device->vendor != 0) {
|
|
|
|
zwp_tablet_v2_send_id(client->resource,
|
|
|
|
zwp_tablet_v2_send_id(client->resource,
|
|
|
|
tablet->wlr_device->vendor, tablet->wlr_device->product);
|
|
|
|
tablet->wlr_device->vendor, tablet->wlr_device->product);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const char **path_ptr;
|
|
|
|
const char **path_ptr;
|
|
|
|
wl_array_for_each(path_ptr, &tablet->wlr_tablet->paths) {
|
|
|
|
wl_array_for_each(path_ptr, &tablet->wlr_tablet->paths) {
|
|
|
|