From: Junkyeong Kim Date: Mon, 14 Oct 2024 07:29:49 +0000 (+0900) Subject: e_view: Execute stack changing when view is not top and bottom X-Git-Tag: accepted/tizen/unified/20241017.114815~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5de0d2b608ce84d76061b62b36a2bda61b15fd9;p=platform%2Fupstream%2Fenlightenment.git e_view: Execute stack changing when view is not top and bottom Change-Id: Id12b6e9a20d75b0fdae11d7dc6b77df3ca486c10 --- diff --git a/src/bin/core/e_view.c b/src/bin/core/e_view.c index 76db73fa8a..8499af4049 100644 --- a/src/bin/core/e_view.c +++ b/src/bin/core/e_view.c @@ -321,8 +321,11 @@ e_view_raise_to_top(E_View *view) top = wl_container_of(view->parent->children.prev, top, link); - wl_list_remove(&view->link); - wl_list_insert(&top->link, &view->link); + if (top != view) + { + wl_list_remove(&view->link); + wl_list_insert(&top->link, &view->link); + } if (view->eo) evas_object_raise(view->eo); @@ -340,8 +343,11 @@ e_view_lower_to_bottom(E_View *view) bottom = wl_container_of(view->parent->children.next, bottom, link); - wl_list_remove(&view->link); - wl_list_insert(bottom->link.prev, &view->link); + if (bottom != view) + { + wl_list_remove(&view->link); + wl_list_insert(bottom->link.prev, &view->link); + } if (view->eo) evas_object_lower(view->eo);