From a5de0d2b608ce84d76061b62b36a2bda61b15fd9 Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Mon, 14 Oct 2024 16:29:49 +0900 Subject: [PATCH] e_view: Execute stack changing when view is not top and bottom Change-Id: Id12b6e9a20d75b0fdae11d7dc6b77df3ca486c10 --- src/bin/core/e_view.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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); -- 2.34.1