mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00: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
af8b938f92
commit
f3b94d9a78
@ -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