[mutter/wip/tablet-protocol-v2: 107/149] wayland: Implement wp_tablet_tool.hardware_id_wacom
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/tablet-protocol-v2: 107/149] wayland: Implement wp_tablet_tool.hardware_id_wacom
- Date: Wed, 20 Jul 2016 17:42:29 +0000 (UTC)
commit 3386e5dc39554b797a0ea5116fedab96dd7902f5
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu May 12 18:02:04 2016 +0200
wayland: Implement wp_tablet_tool.hardware_id_wacom
We can now fetch this info from the ClutterInputDeviceTool, so
use it to implement this event.
src/wayland/meta-wayland-tablet-tool.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/wayland/meta-wayland-tablet-tool.c b/src/wayland/meta-wayland-tablet-tool.c
index 0e8af8c..8e69f79 100644
--- a/src/wayland/meta-wayland-tablet-tool.c
+++ b/src/wayland/meta-wayland-tablet-tool.c
@@ -223,18 +223,20 @@ static void
meta_wayland_tablet_tool_notify_details (MetaWaylandTabletTool *tool,
struct wl_resource *resource)
{
- guint64 serial;
+ guint64 serial, id;
zwp_tablet_tool_v2_send_type (resource,
input_device_tool_get_type (tool->device_tool));
- serial = (guint64) clutter_input_device_tool_get_serial (tool->device_tool);
+ serial = clutter_input_device_tool_get_serial (tool->device_tool);
zwp_tablet_tool_v2_send_hardware_serial (resource, (uint32_t) (serial >> 32),
(uint32_t) (serial & G_MAXUINT32));
- meta_wayland_tablet_tool_notify_capabilities (tool, resource);
+ id = clutter_input_device_tool_get_id (tool->device_tool);
+ zwp_tablet_tool_v2_send_hardware_id_wacom (resource, (uint32_t) (id >> 32),
+ (uint32_t) (id & G_MAXUINT32));
- /* FIXME: zwp_tablet_tool_v2.hardware_id_wacom missing */
+ meta_wayland_tablet_tool_notify_capabilities (tool, resource);
zwp_tablet_tool_v2_send_done (resource);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]