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);
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);