fullscreen-shell: Use weston_view_move_to_layer()

Use the new helper, instead of open-coding a small part of it.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2023-06-20 11:41:34 +01:00
parent e743d56327
commit 38e1523bdc
1 changed files with 2 additions and 5 deletions

View File

@ -616,15 +616,12 @@ fs_output_apply_pending(struct fs_output *fsout)
weston_log("no memory\n");
return;
}
fsout->view->is_mapped = true;
fsout->surface->is_mapped = true;
wl_signal_add(&fsout->surface->destroy_signal,
&fsout->surface_destroyed);
weston_layer_entry_insert(&fsout->shell->layer.view_list,
&fsout->view->layer_link);
weston_view_geometry_dirty(fsout->view);
weston_view_move_to_layer(fsout->view,
&fsout->shell->layer.view_list);
}
fs_output_clear_pending(fsout);