Rémi Bernon (@rbernon) commented about dlls/winewayland.drv/wayland_surface.c:
- if (surface->xdg_toplevel)
- {
xdg_toplevel_destroy(surface->xdg_toplevel);
surface->xdg_toplevel = NULL;
- }
- if (surface->xdg_surface)
- {
xdg_surface_destroy(surface->xdg_surface);
surface->xdg_surface = NULL;
- }
- surface->pending_serial = 0;
- surface->current_serial = 0;
You probably want to lock the surface around there?