[clutter/wip/evdev-tablet-support: 153/164] evdev: Use device name rather than sysname
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/evdev-tablet-support: 153/164] evdev: Use device name rather than sysname
- Date: Wed, 21 Oct 2015 18:04:13 +0000 (UTC)
commit 7b586b5f0f0c90faff4ff017c6c547b38da64603
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jan 9 17:06:55 2015 +0100
evdev: Use device name rather than sysname
The device name is something more natural, similar to what's seen
in X11, the sysname is rather the event node basename, which may
also vary depending on device insertion/detection time.
clutter/evdev/clutter-input-device-evdev.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/evdev/clutter-input-device-evdev.c b/clutter/evdev/clutter-input-device-evdev.c
index bcf7baf..f3af199 100644
--- a/clutter/evdev/clutter-input-device-evdev.c
+++ b/clutter/evdev/clutter-input-device-evdev.c
@@ -114,7 +114,7 @@ _clutter_input_device_evdev_new (ClutterDeviceManager *manager,
product = g_strdup_printf ("%.4x", libinput_device_get_id_product (libinput_device));
device = g_object_new (CLUTTER_TYPE_INPUT_DEVICE_EVDEV,
"id", global_device_id_next++,
- "name", libinput_device_get_sysname (libinput_device),
+ "name", libinput_device_get_name (libinput_device),
"device-manager", manager,
"device-type", type,
"device-mode", CLUTTER_INPUT_MODE_SLAVE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]