Paul Gofman (@gofman) commented about dlls/winex11.drv/vulkan.c:
} if (surface->window)
XDestroyWindow(gdi_display, surface->window);
- {
struct x11drv_win_data *data;
if ((data = get_win_data( surface->hwnd )))
{
detach_client_window( data, surface->window );
We are destoying the window right after and only want to update client window data here. Reparenting the window before looks excessive. It is not exactly cheap and triggers more WM events opening up a way to more races, so I guess it is important to avoid that.