Comment 7 for bug 1397375

Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

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.