[mutter/wip/tablet-protocol-v2: 38/65] clutter/evdev: Set device node information to evdev devices
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/tablet-protocol-v2: 38/65] clutter/evdev: Set device node information to evdev devices
- Date: Wed, 29 Jun 2016 12:23:31 +0000 (UTC)
commit 4d289d24e921849df7a2d2d57c8c045d157e5c56
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri May 13 13:18:05 2016 +0200
clutter/evdev: Set device node information to evdev devices
clutter/clutter/evdev/clutter-input-device-evdev.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter/evdev/clutter-input-device-evdev.c
b/clutter/clutter/evdev/clutter-input-device-evdev.c
index 8a1914f..0cd4133 100644
--- a/clutter/clutter/evdev/clutter-input-device-evdev.c
+++ b/clutter/clutter/evdev/clutter-input-device-evdev.c
@@ -142,12 +142,14 @@ _clutter_input_device_evdev_new (ClutterDeviceManager *manager,
ClutterDeviceManagerEvdev *manager_evdev;
gchar *vendor, *product;
gint device_id, n_rings = 0, n_strips = 0, n_groups = 1;
+ gchar *node_path;
type = _clutter_input_device_evdev_determine_type (libinput_device);
vendor = g_strdup_printf ("%.4x", libinput_device_get_id_vendor (libinput_device));
product = g_strdup_printf ("%.4x", libinput_device_get_id_product (libinput_device));
manager_evdev = CLUTTER_DEVICE_MANAGER_EVDEV (manager);
device_id = _clutter_device_manager_evdev_acquire_device_id (manager_evdev);
+ node_path = g_strdup_printf ("/dev/input/%s", libinput_device_get_sysname (libinput_device));
if (libinput_device_has_capability (libinput_device,
LIBINPUT_DEVICE_CAP_TABLET_PAD))
@@ -169,6 +171,7 @@ _clutter_input_device_evdev_new (ClutterDeviceManager *manager,
"n-rings", n_rings,
"n-strips", n_strips,
"n-mode-groups", n_groups,
+ "device-node", node_path,
NULL);
device->seat = seat;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]