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 <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2024-04-10 14:52:16 +03:00 committed by Daniel Stone
parent e79600483f
commit 904811100e

View File

@ -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