deiconify_approve: remove unnecessary code for iconifying/lowering window
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 26 Jun 2017 10:33:35 +0000 (19:33 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 5 Jul 2017 08:47:37 +0000 (17:47 +0900)
There is no need to add children window to the deiconifying job list.
We just add the parent window to the job list.

Change-Id: Ie9783b51582e8cf3a93e088ca005a5cd248ab31a

src/bin/e_policy_visibility.c

index b86687ac6f3134417d4cb73e2736d15f5491fd50..01ae884d0229c5113e988edb8253b76002e4ab3c 100644 (file)
@@ -1513,9 +1513,6 @@ e_policy_visibility_client_raise(E_Client *ec)
 E_API Eina_Bool
 e_policy_visibility_client_lower(E_Client *ec)
 {
-   E_Client *child;
-   Eina_List *l;
-
    if (!e_config->use_buffer_flush) return EINA_FALSE;
 
    E_VIS_CLIENT_GET_OR_RETURN_VAL(vc, ec, EINA_FALSE);
@@ -1537,17 +1534,6 @@ e_policy_visibility_client_lower(E_Client *ec)
 
    /* add lower job, it will be executed after below activity client finishs updating */
    _e_vis_client_job_add(vc, E_VIS_JOB_TYPE_LOWER);
-   if (e_config->transient.lower)
-     {
-        l = eina_list_clone(ec->transients);
-
-        EINA_LIST_FREE(l, child)
-          {
-             E_VIS_CLIENT_GET(vc2, child);
-             if (!vc2) continue;
-             _e_vis_client_job_add(vc2, E_VIS_JOB_TYPE_LOWER);
-          }
-     }
 
    return EINA_TRUE;
 }
@@ -1555,9 +1541,6 @@ e_policy_visibility_client_lower(E_Client *ec)
 E_API Eina_Bool
 e_policy_visibility_client_iconify(E_Client *ec)
 {
-   E_Client *child;
-   Eina_List *l;
-
    if (!e_config->use_buffer_flush) return EINA_FALSE;
 
    E_VIS_CLIENT_GET_OR_RETURN_VAL(vc, ec, EINA_FALSE);
@@ -1580,17 +1563,6 @@ e_policy_visibility_client_iconify(E_Client *ec)
 
    /* add lower job, it will be executed after below activity client finishs updating */
    _e_vis_client_job_add(vc, E_VIS_JOB_TYPE_ICONIFY);
-   if (e_config->transient.iconify)
-     {
-        l = eina_list_clone(ec->transients);
-
-        EINA_LIST_FREE(l, child)
-          {
-             E_VIS_CLIENT_GET(vc2, child);
-             if (!vc2) continue;
-             _e_vis_client_job_add(vc2, E_VIS_JOB_TYPE_ICONIFY);
-          }
-     }
 
    return EINA_TRUE;
 }