forked from enlightenment/efl
elput: Fix async input shutdown during init
By only checking if the thread was cancelled *after* sending feedback to the main thread we ended up claiming all the devices libinput asked for in a way that never allowed them to be released (how the hell can a cancelled thread send feedback?)
This commit is contained in:
parent
ab68723b60
commit
b04fa2ddba
|
@ -12,6 +12,7 @@ _cb_open_restricted(const char *path, int flags, void *data)
|
|||
if (!em->input.thread)
|
||||
return em->interface->open(em, path, flags);
|
||||
if (!em->interface->open_async) return ret;
|
||||
if (ecore_thread_check(em->input.thread)) return ret;
|
||||
ao = calloc(1, sizeof(Elput_Async_Open));
|
||||
if (!ao) return ret;
|
||||
if (pipe2(p, O_CLOEXEC) < 0)
|
||||
|
|
Loading…
Reference in New Issue