mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-01 18:58:34 +00:00
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:
parent
904811100e
commit
d62e8052f0
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue