summaryrefslogtreecommitdiff
path: root/src/lib/elput
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elput')
-rw-r--r--src/lib/elput/elput_evdev.c4
-rw-r--r--src/lib/elput/elput_input.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c
index 3a7b515..29c695d 100644
--- a/src/lib/elput/elput_evdev.c
+++ b/src/lib/elput/elput_evdev.c
@@ -1279,6 +1279,7 @@ Elput_Device *
1279_evdev_device_create(Elput_Seat *seat, struct libinput_device *device) 1279_evdev_device_create(Elput_Seat *seat, struct libinput_device *device)
1280{ 1280{
1281 Elput_Device *edev; 1281 Elput_Device *edev;
1282 const char *oname;
1282 1283
1283 edev = calloc(1, sizeof(Elput_Device)); 1284 edev = calloc(1, sizeof(Elput_Device));
1284 if (!edev) return NULL; 1285 if (!edev) return NULL;
@@ -1287,6 +1288,9 @@ _evdev_device_create(Elput_Seat *seat, struct libinput_device *device)
1287 edev->device = device; 1288 edev->device = device;
1288 edev->caps = 0; 1289 edev->caps = 0;
1289 1290
1291 oname = libinput_device_get_output_name(device);
1292 eina_stringshare_replace(&edev->output_name, oname);
1293
1290 if ((libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_KEYBOARD)) && 1294 if ((libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_KEYBOARD)) &&
1291 (libinput_device_keyboard_has_key(device, KEY_ENTER))) 1295 (libinput_device_keyboard_has_key(device, KEY_ENTER)))
1292 { 1296 {
diff --git a/src/lib/elput/elput_input.c b/src/lib/elput/elput_input.c
index b3567e2..ee7f044 100644
--- a/src/lib/elput/elput_input.c
+++ b/src/lib/elput/elput_input.c
@@ -180,7 +180,6 @@ _device_add(Elput_Manager *em, struct libinput_device *dev)
180{ 180{
181 Elput_Seat *eseat; 181 Elput_Seat *eseat;
182 Elput_Device *edev; 182 Elput_Device *edev;
183 const char *oname;
184 183
185 eseat = _udev_seat_get(em, dev); 184 eseat = _udev_seat_get(em, dev);
186 if (!eseat) return; 185 if (!eseat) return;
@@ -188,9 +187,6 @@ _device_add(Elput_Manager *em, struct libinput_device *dev)
188 edev = _evdev_device_create(eseat, dev); 187 edev = _evdev_device_create(eseat, dev);
189 if (!edev) return; 188 if (!edev) return;
190 189
191 oname = libinput_device_get_output_name(dev);
192 eina_stringshare_replace(&edev->output_name, oname);
193
194 eseat->devices = eina_list_append(eseat->devices, edev); 190 eseat->devices = eina_list_append(eseat->devices, edev);
195 191
196 DBG("Input Device Added: %s", libinput_device_get_name(dev)); 192 DBG("Input Device Added: %s", libinput_device_get_name(dev));