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:
Derek Foreman 2017-02-07 16:53:09 -06:00
parent ab68723b60
commit b04fa2ddba
1 changed files with 1 additions and 0 deletions

View File

@ -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)