summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_input.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-02-07 11:33:25 -0500
committerChris Michael <cp.michael@samsung.com>2017-02-07 11:41:35 -0500
commit76e52c3e446ddd92097295e123e345b4247a4764 (patch)
tree31e0da2af867568c3db5aa8d5c1ad5dbc893688f /src/lib/elput/elput_input.c
parent7a8b385011e0d0ec18a52a07ec726699cab1aaef (diff)
elput: Set device output name when device is created
Small patch to set the output name of an Elput_Device when the device gets created. Note, this was already being done inside elput_input, but this patch moves it to when the device gets created. NB: Really no functional changes here, just moving a function call. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/elput/elput_input.c')
-rw-r--r--src/lib/elput/elput_input.c4
1 files changed, 0 insertions, 4 deletions
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));