From 179d4513d0638f9f5fd42998d91f819465683c16 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 19 Jun 2023 22:52:02 +0100 Subject: [PATCH] desktop-shell: Use weston_view_move_to_layer() for fullscreen fades Use our shiny new helper for fullscreen fades. 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 3467e60d6..9fcdebab4 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -3987,11 +3987,7 @@ shell_fade_create_view_for_output(struct desktop_shell *shell, assert(curtain); weston_view_set_output(curtain->view, output); - weston_layer_entry_insert(&compositor->fade_layer.view_list, - &curtain->view->layer_link); - curtain->view->is_mapped = true; - weston_view_geometry_dirty(curtain->view); - weston_surface_damage(curtain->view->surface); + weston_view_move_to_layer(curtain->view, &compositor->fade_layer.view_list); return curtain; }