If a surface is removed from a layer's render order list, but the
changes are not commited. Then, the surface could not be added to the
same layer with ivi_layout_add_surface API. Because ivi_view of the
surface is still in the render order list of the layer.

It is not possible to change the order of surfaces in a layer without
clearing and commiting the changes before. The same issue also occurs
for layers with ivi_layout_screen_add_layer API.

First two patches fix issues for ivi_layout_layer_add_surface and
ivi_layout_screen_add_layer API. Other patches implement testcases to
test these use-cases.

Emre Ucan (4):
  ivi-shell: don't check view is rendered before adding surface
  ivi-shell: don't check layer is already on the screen
  ivi-shell: add layer_add_surfaces test
  ivi-shell: add screen_add_layers test

 ivi-shell/ivi-layout.c           |    7 -----
 tests/ivi_layout-internal-test.c |   54 ++++++++++++++++++++++++++++++++++++++
 tests/ivi_layout-test-plugin.c   |   49 ++++++++++++++++++++++++++++++++++
 tests/ivi_layout-test.c          |    1 +
 4 files changed, 104 insertions(+), 7 deletions(-)

-- 
1.7.9.5

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to