The work around I have for this is to create your own event queue, the working example i have now: https://github.com/glfw/glfw/blob/master/src/mir_window.c
The only difference to move to mir events 2.0 is to instead of memcpy the struct of the sizeof(MirEvent) is to use mir_event_ref to get a copy of the reference of the event. Then just use a mutex when using the queue. Works quite well atm. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mir in Ubuntu. https://bugs.launchpad.net/bugs/1397375 Title: [enhancement] need fd (file descriptor) and dispatch function Status in Mir: Triaged Status in mir package in Ubuntu: Triaged Bug description: A long-standing request only ever made in person (I think) so let's write it down: We need a way to get a pollable object out of the mir client library and a dispatch function to call so that we can integrate mir into the mainloop of the toolkit that is trying to use it. The thread-based delivery mechanism is inconvenient for most toolkits. The fd would ideally be the mir socket itself, but it could also be an eventfd that gets signalled from another thread. In the name of efficiency we should try to cut out the extra threads entirely, though. The dispatch function would dispatch events to the registered delegate, directly from the thread in which it was called. Alternatively (or perhaps additionally), we could also use a function to manually dequeue events. To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1397375/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

