e_policy: add code to set higher layer for dialog type window 79/110979/2 accepted/tizen/common/20170119.171938 accepted/tizen/ivi/20170119.222313 accepted/tizen/mobile/20170119.222213 accepted/tizen/tv/20170119.222238 accepted/tizen/wearable/20170119.222256 submit/tizen/20170119.073847 submit/tizen_3.0/20170119.073818
authorDoyoun Kang <doyoun.kang@samsung.com>
Thu, 19 Jan 2017 05:32:14 +0000 (14:32 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Thu, 19 Jan 2017 05:36:34 +0000 (14:36 +0900)
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

src/bin/e_policy.c
src/bin/e_policy_private_data.h

index 1a1310550803d81066d2e4d04dffcad7057117e1..ba80772b75f47b1ae46e04780593cbdf6068693c 100644 (file)
@@ -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)
index 389e3ff86bfc52705de1342c50d9b0715e5af249..ac1f4e38383119ffb1bda389bd8265d2eb7b460a 100644 (file)
@@ -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) */