diff options
Diffstat (limited to 'src/lib/elput/elput_evdev.c')
-rw-r--r-- | src/lib/elput/elput_evdev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c index 9580f49909..b022a6fe0d 100644 --- a/src/lib/elput/elput_evdev.c +++ b/src/lib/elput/elput_evdev.c | |||
@@ -1252,6 +1252,7 @@ Elput_Device * | |||
1252 | _evdev_device_create(Elput_Seat *seat, struct libinput_device *device) | 1252 | _evdev_device_create(Elput_Seat *seat, struct libinput_device *device) |
1253 | { | 1253 | { |
1254 | Elput_Device *edev; | 1254 | Elput_Device *edev; |
1255 | const char *oname; | ||
1255 | 1256 | ||
1256 | edev = calloc(1, sizeof(Elput_Device)); | 1257 | edev = calloc(1, sizeof(Elput_Device)); |
1257 | if (!edev) return NULL; | 1258 | if (!edev) return NULL; |
@@ -1260,6 +1261,9 @@ _evdev_device_create(Elput_Seat *seat, struct libinput_device *device) | |||
1260 | edev->device = device; | 1261 | edev->device = device; |
1261 | edev->caps = 0; | 1262 | edev->caps = 0; |
1262 | 1263 | ||
1264 | oname = libinput_device_get_output_name(device); | ||
1265 | eina_stringshare_replace(&edev->output_name, oname); | ||
1266 | |||
1263 | if ((libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_KEYBOARD)) && | 1267 | if ((libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_KEYBOARD)) && |
1264 | (libinput_device_keyboard_has_key(device, KEY_ENTER))) | 1268 | (libinput_device_keyboard_has_key(device, KEY_ENTER))) |
1265 | { | 1269 | { |