mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-03 02:52:32 +00:00
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:
parent
e79600483f
commit
904811100e
|
@ -129,10 +129,9 @@ weston_desktop_xwayland_surface_change_state(struct weston_desktop_xwayland_surf
|
||||||
|
|
||||||
surface->view =
|
surface->view =
|
||||||
weston_desktop_surface_create_view(surface->surface);
|
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_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
|
/* If the surface state was updated by the shell during this
|
||||||
|
|
Loading…
Reference in a new issue