Rémi Bernon (@rbernon) commented about dlls/winewayland.drv/wayland.c:
pthread_mutex_lock(&cb->mutex);
cb->done = TRUE;
pthread_cond_signal(&cb->done_cond);
pthread_mutex_unlock(&cb->mutex);
- }
- return 0;
+}
+/**********************************************************************
wayland_dispatch_events
- Dispatch the events received from the compositor and any scheduled
- internal callbacks.
- */
+int wayland_dispatch_events(void)
This looks quite complicated (and a lot like the event dispatch mechanism that was not well received in the previous MR) just to make sure the surfaces aren't used anymore. There's maybe an easier way to do?