mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
wayland: Implement wp_tablet.path
Now that we have clutter_input_device_get_device_node(), it is trivial to implement.
This commit is contained in:
parent
257b16680f
commit
1bf263f038
@ -88,13 +88,12 @@ meta_wayland_tablet_notify (MetaWaylandTablet *tablet,
|
|||||||
guint vid, pid;
|
guint vid, pid;
|
||||||
|
|
||||||
zwp_tablet_v2_send_name (resource, clutter_input_device_get_device_name (device));
|
zwp_tablet_v2_send_name (resource, clutter_input_device_get_device_name (device));
|
||||||
|
zwp_tablet_v2_send_path (resource, clutter_input_device_get_device_node (device));
|
||||||
|
|
||||||
if (sscanf (clutter_input_device_get_vendor_id (device), "%x", &vid) == 1 &&
|
if (sscanf (clutter_input_device_get_vendor_id (device), "%x", &vid) == 1 &&
|
||||||
sscanf (clutter_input_device_get_product_id (device), "%x", &pid) == 1)
|
sscanf (clutter_input_device_get_product_id (device), "%x", &pid) == 1)
|
||||||
zwp_tablet_v2_send_id (resource, vid, pid);
|
zwp_tablet_v2_send_id (resource, vid, pid);
|
||||||
|
|
||||||
/* FIXME: zwp_tablet_v2.path missing */
|
|
||||||
|
|
||||||
zwp_tablet_v2_send_done (resource);
|
zwp_tablet_v2_send_done (resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user