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>
This commit is contained in:
Chris Michael 2016-06-02 10:24:42 -04:00
parent 6664229bdc
commit 7b3d20371e
1 changed files with 3 additions and 3 deletions

View File

@ -312,9 +312,10 @@ static void
_elput_input_init_thread(void *data, Ecore_Thread *eth EINA_UNUSED)
{
Elput_Manager *manager = data;
struct udev *udev;
void *udev = NULL;
udev = udev_new();
udev = eeze_udev_get();
if (!udev) return;
manager->input.lib =
libinput_udev_create_context(&_input_interface, manager, udev);
@ -323,7 +324,6 @@ _elput_input_init_thread(void *data, Ecore_Thread *eth EINA_UNUSED)
ERR("libinput could not create udev context");
return;
}
udev_unref(udev);
if (libinput_udev_assign_seat(manager->input.lib, manager->seat))
{