mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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.
This commit is contained in:
parent
5f5d8f4091
commit
9d32146edb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user