From 1c2edaac6b999790fe666f5ff50b3b19a46e4707 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 20 Jun 2023 11:40:26 +0100 Subject: [PATCH] desktop-shell: Use weston_view_move_to_layer() for fullscreen background Use the new helper for placing the fullscreen background view. Signed-off-by: Daniel Stone --- desktop-shell/shell.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 091bf2487..270d46433 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -1927,11 +1927,7 @@ shell_ensure_fullscreen_black_view(struct shell_surface *shsurf) view = shsurf->fullscreen.black_view->view; weston_view_set_output(view, output); - weston_layer_entry_remove(&view->layer_link); - weston_layer_entry_insert(&shsurf->view->layer_link, &view->layer_link); - view->is_mapped = true; - weston_view_geometry_dirty(view); - weston_surface_damage(surface); + weston_view_move_to_layer(view, &shsurf->view->layer_link); shsurf->state.lowered = false; }