From 3ff4250b28aefbcfefdd869cb997d0591c06b6d8 Mon Sep 17 00:00:00 2001 From: Hideyuki Nagase Date: Mon, 23 Jan 2023 15:43:36 -0800 Subject: [PATCH] libweston-desktop: xwayland window is not visible upon commit until mouse is moved (#130) * libweston-desktop: xwayland window is not visible upon commit * check XWAYLAND state instead of relying on added Co-authored-by: Hideyuki Nagase Co-authored-by: Hideyuki Nagase --- libweston-desktop/xwayland.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libweston-desktop/xwayland.c b/libweston-desktop/xwayland.c index 86cc330e1..232388f57 100644 --- a/libweston-desktop/xwayland.c +++ b/libweston-desktop/xwayland.c @@ -170,6 +170,9 @@ weston_desktop_xwayland_surface_committed(struct weston_desktop_surface *dsurfac if (surface->added) weston_desktop_api_committed(surface->desktop, surface->surface, sx, sy); + + if (surface->state == XWAYLAND) + weston_view_update_transform(surface->view); } static void