e_policy_visibility: add code to uniconify below windows of the deleted window 57/113257/2 accepted/tizen/3.0/common/20170208.145431 accepted/tizen/3.0/ivi/20170208.084117 accepted/tizen/3.0/mobile/20170208.084017 accepted/tizen/3.0/tv/20170208.084038 accepted/tizen/3.0/wearable/20170208.084058 accepted/tizen/common/20170207.120623 accepted/tizen/ivi/20170208.103136 accepted/tizen/mobile/20170208.103012 accepted/tizen/tv/20170208.103042 accepted/tizen/wearable/20170208.103109 submit/tizen/20170207.092647 submit/tizen_3.0/20170207.092615
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 7 Feb 2017 04:51:53 +0000 (13:51 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 7 Feb 2017 05:00:16 +0000 (21:00 -0800)
There was no visible window when the window is destroyed while it is running deiconify_approve.

Change-Id: Iab91c4eabdbb35f68fdfde8f1ecd9b215b9381df

src/bin/e_policy_visibility.c

index 4676f4f..80d528a 100644 (file)
@@ -36,6 +36,7 @@ static Eina_Bool         _e_vis_ec_activity_check(E_Client *ec, Eina_Bool check_
 static void              _e_vis_ec_job_exec(E_Client *ec, E_Vis_Job_Type type);
 static void              _e_vis_ec_setup(E_Client *ec);
 static void              _e_vis_ec_reset(E_Client *ec);
+static Eina_Bool         _e_vis_ec_below_uniconify(E_Client *ec);
 
 static E_Vis            *pol_vis = NULL;
 /* the list for E_Vis_Job */
@@ -788,7 +789,11 @@ static Eina_Bool
 _e_vis_client_grab_clear_cb(void *data)
 {
    E_Vis_Grab *grab = data;
-   VS_INF(grab->vc->ec, "FORCE CLEAR! Grab %s", grab->name);
+   VS_INF(grab->vc->ec, "FORCE CLEAR! Grab %s, cur state:%d", grab->name, grab->vc->state);
+
+   if (grab->vc->state == E_VIS_ICONIFY_STATE_RUNNING_UNICONIFY)
+     _e_vis_ec_below_uniconify(grab->vc->ec);
+
    grab->deleted = 1;
    _e_vis_client_grab_remove(grab->vc, grab);
    return ECORE_CALLBACK_DONE;