summaryrefslogtreecommitdiff
path: root/src/lib/elput
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-05-26 16:34:10 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-05-26 16:27:43 -0400
commitd725ae5a0a244fd758944fa9847130336477ed66 (patch)
tree387b2585c68d663af69bf809101738021422c90b /src/lib/elput
parented4e54ebe2da6b0c2f04bc118286b1b3251edbd9 (diff)
elput: fallback to regular device name if output_name is not available
Diffstat (limited to 'src/lib/elput')
-rw-r--r--src/lib/elput/elput_evdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c
index 741d1fdfb2..81f1302f54 100644
--- a/src/lib/elput/elput_evdev.c
+++ b/src/lib/elput/elput_evdev.c
@@ -1565,6 +1565,8 @@ _evdev_device_create(Elput_Seat *seat, struct libinput_device *device)
1565 edev->oh = seat->manager->output_h; 1565 edev->oh = seat->manager->output_h;
1566 1566
1567 oname = libinput_device_get_output_name(device); 1567 oname = libinput_device_get_output_name(device);
1568 if (!oname)
1569 oname = libinput_device_get_name(device);
1568 eina_stringshare_replace(&edev->output_name, oname); 1570 eina_stringshare_replace(&edev->output_name, oname);
1569 1571
1570 if ((libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_KEYBOARD)) && 1572 if ((libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_KEYBOARD)) &&