From 4bbe4e6e984a0ba44110b049deb9c2ed9d38ed30 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 11 Jul 2023 16:57:19 +0100 Subject: [PATCH] desktop-shell: Use weston_view_move_to_layer() for fullscreen Use our helper to move stuff around. Signed-off-by: Daniel Stone --- desktop-shell/shell.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 2560ae6c6..a41c9ac36 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -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);