From: Rémi Bernon <rbernon@codeweavers.com> The client surfaces should have been attached to their new toplevel window already. If not, it should probably be fixed in win32u. --- dlls/winewayland.drv/window.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/dlls/winewayland.drv/window.c b/dlls/winewayland.drv/window.c index 887e233c8ed..1ee04f53021 100644 --- a/dlls/winewayland.drv/window.c +++ b/dlls/winewayland.drv/window.c @@ -434,7 +434,6 @@ void WAYLAND_WindowPosChanged(HWND hwnd, HWND insert_after, HWND owner_hint, UIN { HWND owner = NtUserGetAncestor(hwnd, GA_ROOT); struct wayland_surface *owner_surface; - struct wayland_client_surface *client; struct wayland_win_data *data, *owner_data; BOOL managed, fullscreen = swp_flags & WINE_SWP_FULLSCREEN; @@ -456,14 +455,6 @@ void WAYLAND_WindowPosChanged(HWND hwnd, HWND insert_after, HWND owner_hint, UIN if (!surface) { - if ((client = data->client_surface)) - { - if (owner && NtUserIsWindowVisible(hwnd)) - wayland_client_surface_attach(client, owner); - else - wayland_client_surface_attach(client, NULL); - } - if (data->wayland_surface) { wayland_surface_destroy(data->wayland_surface); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11225