e_client: No need to reparent with layer tree 51/315451/1
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 1 Aug 2024 04:14:17 +0000 (13:14 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 1 Aug 2024 05:19:28 +0000 (14:19 +0900)
It's just enough to reparent with an immediate parent.

Change-Id: I978f9e68658e7d8d559b9d903e6c54adcec95401

src/bin/core/e_client.c

index 582b286..05caae2 100644 (file)
@@ -6234,7 +6234,7 @@ e_client_stack_above(E_Client *ec, E_Client *above)
    above_view = e_view_client_view_get(PRI(above)->view_client);
 
    if (e_view_parent_get(ec_view) != e_view_parent_get(above_view))
-     e_view_reparent(ec_view, e_canvas_layer_view_tree_get(e_comp_canvas_get(), e_canvas_layer_find(e_comp_canvas_get(), above_view)));
+     e_view_reparent(ec_view, e_view_parent_get(above_view));
 
    e_view_place_above(ec_view , above_view);
 
@@ -6255,7 +6255,7 @@ e_client_stack_below(E_Client *ec, E_Client *below)
    below_view = e_view_client_view_get(PRI(below)->view_client);
 
    if (e_view_parent_get(ec_view) != e_view_parent_get(below_view))
-     e_view_reparent(ec_view, e_canvas_layer_view_tree_get(e_comp_canvas_get(), e_canvas_layer_find(e_comp_canvas_get(), below_view)));
+     e_view_reparent(ec_view, e_view_parent_get(below_view));
 
    e_view_place_below(ec_view, below_view);