summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2015-01-09 17:06:55 +0100
committerCarlos Garnacho <carlosg@gnome.org>2016-04-05 18:56:34 +0200
commit2a9315492000a2104f8a6f95e286fb17df775cf1 (patch)
tree609036ee0f45be65bc34e00a2507967972583832
parent418436010f873fcf94a56a6b6e1fbfd2e2902cf7 (diff)
downloadclutter-2a9315492000a2104f8a6f95e286fb17df775cf1.tar.gz
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.
-rw-r--r--clutter/evdev/clutter-input-device-evdev.c2
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 db190b192..6e9c92520 100644
--- a/clutter/evdev/clutter-input-device-evdev.c
+++ b/clutter/evdev/clutter-input-device-evdev.c
@@ -112,7 +112,7 @@ _clutter_input_device_evdev_new (ClutterDeviceManager *manager,
device_id = _clutter_device_manager_evdev_acquire_device_id (manager_evdev);
device = g_object_new (CLUTTER_TYPE_INPUT_DEVICE_EVDEV,
"id", device_id,
- "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,