Commit 27f879b8 authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

wayland: Support pad devices in gdk_wayland_device_get_node_path()

We can return the node path on those too, so do that.
parent 7e961b8b
......@@ -5176,7 +5176,7 @@ gdk_wayland_device_get_drop_context (GdkDevice *device)
* will return %NULL.
* This is most notably implemented for devices of type
* Returns: the /dev/input/event* path of this device
......@@ -5184,6 +5184,7 @@ const gchar *
gdk_wayland_device_get_node_path (GdkDevice *device)
GdkWaylandTabletData *tablet;
GdkWaylandTabletPadData *pad;
GdkSeat *seat;
......@@ -5195,5 +5196,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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment