e_policy_visibility: cancel client_lower if ec is unmapped 59/237859/2 accepted/tizen/unified/20200707.140947 submit/tizen/20200706.075111
authorJunseok, Kim <juns.kim@samsung.com>
Mon, 6 Jul 2020 07:13:41 +0000 (16:13 +0900)
committerJunSeok Kim <juns.kim@samsung.com>
Mon, 6 Jul 2020 07:18:05 +0000 (07:18 +0000)
if the client lower when ec is unmapped, then "post_lower" flag of ec may not be set.
it is timing issue and cause of running e_policy_visibility_client_lower.
for prevent this issue, return false if client is unmapped.

Change-Id: Iea6bc0cb823f06c85e659c248d8de36ecd0bc5b2
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
src/bin/e_policy_visibility.c

index 5a327b511fa3de1cff3a2e339bd24ee91b638cd0..328b2a76a147b5f431a8cfda5f27668317927f32 100644 (file)
@@ -2310,6 +2310,12 @@ e_policy_visibility_client_lower(E_Client *ec)
 
    E_VIS_CLIENT_GET_OR_RETURN_VAL(vc, ec, EINA_FALSE);
 
+   if ((ec->comp_data) && (!ec->comp_data->mapped))
+     {
+        VS_DBG(ec, "client Unmapped.");
+        return EINA_FALSE;
+     }
+
    VS_DBG(ec, "API ENTRY | LOWER");
 
    /* if vc has job grab, release them */