summaryrefslogtreecommitdiff
path: root/src/lib/elput
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-06-02 11:12:06 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-06-02 11:12:06 -0400
commit596b132226d67ac8fd1e8e3d928371481dae88d4 (patch)
tree91f08cc02e940289a64a3012c57fd870db8b1866 /src/lib/elput
parent354bc66d0d58a74b0464275e865a9cc6c920a538 (diff)
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
Diffstat (limited to 'src/lib/elput')
-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 debaab0dea..1918216565 100644
--- a/src/lib/elput/elput_input.c
+++ b/src/lib/elput/elput_input.c
@@ -312,10 +312,9 @@ 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 void *udev = NULL; 315 struct udev *udev;
316 316
317 udev = eeze_udev_get(); 317 udev = udev_new();
318 if (!udev) return;
319 318
320 manager->input.lib = 319 manager->input.lib =
321 libinput_udev_create_context(&_input_interface, manager, udev); 320 libinput_udev_create_context(&_input_interface, manager, udev);
@@ -324,6 +323,7 @@ _elput_input_init_thread(void *data, Ecore_Thread *eth EINA_UNUSED)
324 ERR("libinput could not create udev context"); 323 ERR("libinput could not create udev context");
325 return; 324 return;
326 } 325 }
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 {