weston-test-desktop-shell: Use the weston_view_move_to_layer helper

This looks that probably it was an oversight as
weston_view_move_to_layer() also handles the insertion.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2024-04-10 14:53:09 +03:00 committed by Daniel Stone
parent 904811100e
commit d62e8052f0

View File

@ -101,7 +101,6 @@ desktop_surface_committed(struct weston_desktop_surface *desktop_surface,
dts->view->surface);
offset = weston_coord_surface_invert(offset);
weston_view_set_position_with_offset(dts->view, pos, offset);
weston_layer_entry_insert(&dts->layer.view_list, &dts->view->layer_link);
weston_view_move_to_layer(dts->view, &dts->layer.view_list);
}