summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_input.c
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-06-02 10:24:42 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-06-02 10:24:42 -0400
commit7b3d20371e8095207c4bafb3684b8a30d4ca6895 (patch)
tree48275971b4877965934b008bb6820f97541aa9cc /src/lib/elput/elput_input.c
parent6664229bdcff786d4c871339e6482c16b7f818b5 (diff)
elput: Use Eeze function to get the udev to create context with
As we already link to Eeze and use it throughout this code, there is no point in adding an extra dependency on libudev itself when we can just use Eeze functions to get what we need. This is a better fix for T3712 @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/elput/elput_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elput/elput_input.c b/src/lib/elput/elput_input.c
index 1918216565..debaab0dea 100644
--- a/src/lib/elput/elput_input.c
+++ b/src/lib/elput/elput_input.c
@@ -312,9 +312,10 @@ static void
312_elput_input_init_thread(void *data, Ecore_Thread *eth EINA_UNUSED) 312_elput_input_init_thread(void *data, Ecore_Thread *eth EINA_UNUSED)
313{ 313{
314 Elput_Manager *manager = data; 314 Elput_Manager *manager = data;
315 struct udev *udev; 315 void *udev = NULL;
316 316
317 udev = udev_new(); 317 udev = eeze_udev_get();
318 if (!udev) return;
318 319
319 manager->input.lib = 320 manager->input.lib =
320 libinput_udev_create_context(&_input_interface, manager, udev); 321 libinput_udev_create_context(&_input_interface, manager, udev);
@@ -323,7 +324,6 @@ _elput_input_init_thread(void *data, Ecore_Thread *eth EINA_UNUSED)
323 ERR("libinput could not create udev context"); 324 ERR("libinput could not create udev context");
324 return; 325 return;
325 } 326 }
326 udev_unref(udev);
327 327
328 if (libinput_udev_assign_seat(manager->input.lib, manager->seat)) 328 if (libinput_udev_assign_seat(manager->input.lib, manager->seat))
329 { 329 {