Rémi Bernon (@rbernon) commented about dlls/winewayland.drv/wayland_surface.c:
} surface->window.scale = 1.0;
- surface->weak_ref = 1;
I don't really like that weak ref, I think you should be able to make it work without it. Just use `NtUserGetAncestor( hwnd, GA_ROOT )` to get the toplevel window and lock its wayland_surface.