From d62e8052f000ea2b486f5b8f22f69ea02ca73a6b Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 10 Apr 2024 14:53:09 +0300 Subject: [PATCH] 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 --- tests/weston-test-desktop-shell.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/weston-test-desktop-shell.c b/tests/weston-test-desktop-shell.c index 9c0fbe53..fe7f86f4 100644 --- a/tests/weston-test-desktop-shell.c +++ b/tests/weston-test-desktop-shell.c @@ -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); }