From: Etaash Mathamsetty <etaash.mathamsetty@gmail.com> --- dlls/winewayland.drv/wayland_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winewayland.drv/wayland_surface.c b/dlls/winewayland.drv/wayland_surface.c index 2f8275ddb52..4058c452a6f 100644 --- a/dlls/winewayland.drv/wayland_surface.c +++ b/dlls/winewayland.drv/wayland_surface.c @@ -688,7 +688,7 @@ static void wayland_surface_reconfigure_subsurface(struct wayland_surface *surfa TRACE("hwnd=%p pos=%d,%d\n", surface->hwnd, x, y); wl_subsurface_set_position(surface->wl_subsurface, x, y); - if (toplevel_data->client_surface) + if (toplevel_data->client_surface && toplevel_data->client_surface->wl_subsurface) wl_subsurface_place_above(surface->wl_subsurface, toplevel_data->client_surface->wl_surface); else wl_subsurface_place_above(surface->wl_subsurface, toplevel_surface->wl_surface); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11104