Module: wine
Branch: master
Commit: 34f392bcfe46a9c864ce0af24e3ca1de4f966d96
URL: https://gitlab.winehq.org/wine/wine/-/commit/34f392bcfe46a9c864ce0af24e3ca1…
Author: Alexandros Frantzis <alexandros.frantzis(a)collabora.com>
Date: Mon Nov 20 15:39:41 2023 +0200
winewayland.drv: Apply client subsurface position on creation.
We cannot depend on the main surface being committed to after
the client subsurface is created, so perform a commit to ensure
the subsurface position takes effect on creation.
---
dlls/winewayland.drv/wayland_surface.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/winewayland.drv/wayland_surface.c b/dlls/winewayland.drv/wayland_surface.c
index 57585927914..285fb9a38c5 100644
--- a/dlls/winewayland.drv/wayland_surface.c
+++ b/dlls/winewayland.drv/wayland_surface.c
@@ -820,6 +820,8 @@ struct wayland_client_surface *wayland_surface_get_client(struct wayland_surface
}
wayland_surface_reconfigure_client(surface);
+ /* Commit to apply subsurface positioning. */
+ wl_surface_commit(surface->wl_surface);
return surface->client;