From: Doyoun Kang Date: Thu, 19 Jan 2017 05:32:14 +0000 (+0900) Subject: e_policy: add code to set higher layer for dialog type window X-Git-Tag: submit/tizen_3.0/20170119.073818^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d94e59377841f84cd6f1c4c2d43f4c4cb5f7521a;p=platform%2Fupstream%2Fenlightenment.git e_policy: add code to set higher layer for dialog type window If the window type is dialog and it doesn't have a parent, then its layer is set to higher than normal window. Change-Id: I4c1a651a4f1608c61b160128e9576478a5e66c02 --- diff --git a/src/bin/e_policy.c b/src/bin/e_policy.c index 1a13105508..ba80772b75 100644 --- a/src/bin/e_policy.c +++ b/src/bin/e_policy.c @@ -659,6 +659,16 @@ _e_policy_cb_hook_client_eval_pre_new_client(void *d EINA_UNUSED, E_Client *ec) evas_object_layer_set(ec->frame, ec->layer); } } + + if (e_policy_client_is_dialog(ec)) + { + if (ec->frame && !ec->parent) + { + if (ec->layer != E_POLICY_DIALOG_LAYER) + evas_object_layer_set(ec->frame, E_POLICY_DIALOG_LAYER); + } + } + if (e_policy_client_is_floating(ec)) { if (ec->frame) diff --git a/src/bin/e_policy_private_data.h b/src/bin/e_policy_private_data.h index 389e3ff86b..ac1f4e3838 100644 --- a/src/bin/e_policy_private_data.h +++ b/src/bin/e_policy_private_data.h @@ -51,7 +51,10 @@ e_policy_angle_get(E_Policy_Angle_Map map) # define E_POLICY_FLOATING_LAYER E_LAYER_CLIENT_PRIO /* layer level - E_LAYER_CLIENT_FULLSCREEN (350) */ + /* layer level - E_LAYER_CLIENT_ABOVE (250) */ +# define E_POLICY_DIALOG_LAYER E_LAYER_CLIENT_ABOVE + /* layer level - E_LAYER_CLIENT_NORMAL (200) */ /* layer level - E_LAYER_CLIENT_BELOW (150) */