From: Mike Blumenkrantz Date: Thu, 2 Jun 2016 15:12:06 +0000 (-0400) Subject: Revert "elput: Use Eeze function to get the udev to create context with" X-Git-Tag: upstream/1.20.0~6034 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=596b132226d67ac8fd1e8e3d928371481dae88d4;p=platform%2Fupstream%2Fefl.git Revert "elput: Use Eeze function to get the udev to create context with" This reverts commit 7b3d20371e8095207c4bafb3684b8a30d4ca6895. using a separate context was intentional here since libudev is not threadsafe and this will crash --- diff --git a/src/lib/elput/elput_input.c b/src/lib/elput/elput_input.c index debaab0..1918216 100644 --- a/src/lib/elput/elput_input.c +++ b/src/lib/elput/elput_input.c @@ -312,10 +312,9 @@ static void _elput_input_init_thread(void *data, Ecore_Thread *eth EINA_UNUSED) { Elput_Manager *manager = data; - void *udev = NULL; + struct udev *udev; - udev = eeze_udev_get(); - if (!udev) return; + udev = udev_new(); manager->input.lib = libinput_udev_create_context(&_input_interface, manager, udev); @@ -324,6 +323,7 @@ _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)) {