[gtk+/wip/wayland-tablet-v2: 16/19] wayland: Support pad devices in gdk_wayland_device_get_node_path()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/wayland-tablet-v2: 16/19] wayland: Support pad devices in gdk_wayland_device_get_node_path()
- Date: Thu, 4 Aug 2016 18:00:08 +0000 (UTC)
commit e7e096c11ce2aeaf0ee37db5a0874517af3560c1
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Aug 4 19:46:04 2016 +0200
wayland: Support pad devices in gdk_wayland_device_get_node_path()
We can return the node path on those too, so do that.
gdk/wayland/gdkdevice-wayland.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 4900fa2..fcd5177 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -5166,6 +5166,7 @@ const gchar *
gdk_wayland_device_get_node_path (GdkDevice *device)
{
GdkWaylandTabletData *tablet;
+ GdkWaylandTabletPadData *pad;
GdkSeat *seat;
@@ -5177,5 +5178,9 @@ gdk_wayland_device_get_node_path (GdkDevice *device)
if (tablet)
return tablet->path;
+ pad = gdk_wayland_device_manager_find_pad (GDK_WAYLAND_SEAT (seat), device);
+ if (pad)
+ return pad->path;
+
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]