diff options
author | Ucan, Emre (ADITG/SW1) <eucan@de.adit-jv.com> | 2017-01-18 15:25:28 +0000 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2017-01-27 16:43:46 +0200 |
commit | 67ed902f4b841bff7b7326e17afbf1fc72976bb0 (patch) | |
tree | e6a3242db6b9407c04bbf019f4f047b282f8b2cd /ivi-shell | |
parent | 66602522741b200b7d99b4bfea3c3e224661a8c7 (diff) |
ivi-shell: don't check view is rendered before adding surface
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. 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. This patch fixes this issue.
After this patch, the pending render order list of a layer is always
modified regardless of its active render order list.
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'ivi-shell')
-rw-r--r-- | ivi-shell/ivi-layout.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c index f5267171..40881da7 100644 --- a/ivi-shell/ivi-layout.c +++ b/ivi-shell/ivi-layout.c @@ -1773,8 +1773,6 @@ ivi_layout_layer_add_surface(struct ivi_layout_layer *ivilayer, ivi_view = get_ivi_view(ivilayer, addsurf); if (!ivi_view) ivi_view = ivi_view_create(ivilayer, addsurf); - else if (ivi_view_is_rendered(ivi_view)) - return IVI_SUCCEEDED; wl_list_remove(&ivi_view->pending_link); wl_list_insert(&ivilayer->pending.view_list, &ivi_view->pending_link); |