desktop-shell: Use weston_view_move_to_layer() for fullscreen

Use our helper to move stuff around.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2023-07-11 16:57:19 +01:00 committed by Marius Vlad
parent e2a48f6f68
commit 4bbe4e6e98

View file

@ -1972,10 +1972,8 @@ shell_configure_fullscreen(struct shell_surface *shsurf)
struct weston_surface *surface =
weston_desktop_surface_get_surface(shsurf->desktop_surface);
/* Reverse the effect of lower_fullscreen_layer() */
weston_layer_entry_remove(&shsurf->view->layer_link);
weston_layer_entry_insert(&shsurf->shell->fullscreen_layer.view_list,
&shsurf->view->layer_link);
weston_view_move_to_layer(shsurf->view,
&shsurf->shell->fullscreen_layer.view_list);
shell_ensure_fullscreen_black_view(shsurf);