summaryrefslogtreecommitdiff
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
parented4e54ebe2da6b0c2f04bc118286b1b3251edbd9 (diff)
downloadefl-d725ae5a0a244fd758944fa9847130336477ed66.tar.gz
elput: fallback to regular device name if output_name is not available
-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)
edev->oh = seat->manager->output_h;
oname = libinput_device_get_output_name(device);
+ if (!oname)
+ oname = libinput_device_get_name(device);
eina_stringshare_replace(&edev->output_name, oname);
if ((libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_KEYBOARD)) &&