From 47c81d55b7c9fcbadcba35ed2ee47a3d3f1f4b7b Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Thu, 6 Jul 2017 18:39:28 +0900 Subject: [PATCH] e_comp_object: fix bug for handling the transient_for below window There was a bug that the transient_for below window's stack is invalid after running effect. So, we added code to check the transient_policy of the window before chaning window stack. Change-Id: I0c0573e55fd092b9c74c63bcad4517dd42a06c30 --- src/bin/e_comp_object.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index 7886d17d58..659716222d 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -1561,7 +1561,12 @@ _e_comp_intercept_layer_set(void *data, Evas_Object *obj, int layer) ec = NULL; } if (ec && (cw->ec->parent == ec)) - evas_object_stack_above(obj, ec->frame); + { + if (cw->ec->transient_policy == E_TRANSIENT_ABOVE) + evas_object_stack_above(obj, ec->frame); + else + evas_object_stack_below(obj, ec->frame); + } else evas_object_stack_below(obj, ec ? ec->frame : e_comp->layers[cw->layer].obj); } -- 2.34.1