If a layer is removed from a screen's render order list, but the
changes are not commited. Then, the layer could not be added to the
same screen. Because on_screen property of the layer is only changed
in ivi_layout_commit_changes API, when active render order of the screen
is changed.

It is not possible to change the order of layers in a screen without
clearing and commiting the changes before. This patch fixes this issue.

After this patch, the pending render order list of a screen is always
modified regardless of its active render order list.

Signed-off-by: Emre Ucan <eu...@de.adit-jv.com>
---
 ivi-shell/ivi-layout.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index 4634ad7..c91a18a 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -1653,11 +1653,6 @@ ivi_layout_screen_add_layer(struct weston_output *output,
 
        iviscrn = get_screen_from_output(output);
 
-       if (addlayer->on_screen == iviscrn) {
-               weston_log("ivi_layout_screen_add_layer: addlayer is already 
available\n");
-               return IVI_SUCCEEDED;
-       }
-
        wl_list_remove(&addlayer->pending.link);
        wl_list_insert(&iviscrn->pending.layer_list, &addlayer->pending.link);
 
-- 
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