From 904811100e13988c564717311e8491f68ce3b1b2 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 10 Apr 2024 14:52:16 +0300 Subject: [PATCH] libweston/desktop: Use the weston_view_move_to_layer helper Rather than using layer_entry_insert, use the weston_view_move_to_layer(). Signed-off-by: Marius Vlad --- libweston/desktop/xwayland.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libweston/desktop/xwayland.c b/libweston/desktop/xwayland.c index 9effecadb..058a081ad 100644 --- a/libweston/desktop/xwayland.c +++ b/libweston/desktop/xwayland.c @@ -129,10 +129,9 @@ weston_desktop_xwayland_surface_change_state(struct weston_desktop_xwayland_surf surface->view = weston_desktop_surface_create_view(surface->surface); - weston_layer_entry_insert(&surface->xwayland->layer.view_list, - &surface->view->layer_link); - surface->view->is_mapped = true; weston_surface_map(wsurface); + weston_view_move_to_layer(surface->view, + &surface->xwayland->layer.view_list); } /* If the surface state was updated by the shell during this