mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 12:28:04 +02:00
tests: Use weston_view_move_to_layer()
Use the helper, don't mark stuff as mapped ourselves. Set the position before the view, so when it's marked as mapped, it's already in position. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
e61d15dd76
commit
5b14a094e7
1 changed files with 5 additions and 5 deletions
|
|
@ -261,14 +261,14 @@ test_surface_committed(struct weston_surface *surface,
|
|||
|
||||
weston_surface_map(test_surface->surface);
|
||||
|
||||
if (wl_list_empty(&test_surface->view->layer_link.link))
|
||||
weston_layer_entry_insert(&test->layer.view_list,
|
||||
&test_surface->view->layer_link);
|
||||
test_surface->view->is_mapped = true;
|
||||
|
||||
pos.c = weston_coord(test_surface->x, test_surface->y);
|
||||
weston_view_set_position(test_surface->view, pos);
|
||||
|
||||
if (wl_list_empty(&test_surface->view->layer_link.link)) {
|
||||
weston_view_move_to_layer(test_surface->view,
|
||||
&test->layer.view_list);
|
||||
}
|
||||
|
||||
weston_view_update_transform(test_surface->view);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue