e_client: Check evas_object_visible if ec's visibliety is UNKNOWN while focusable... 47/231747/2
authorJunseok, Kim <juns.kim@samsung.com>
Thu, 23 Apr 2020 09:07:33 +0000 (18:07 +0900)
committerJunSeok Kim <juns.kim@samsung.com>
Fri, 24 Apr 2020 05:15:35 +0000 (05:15 +0000)
There is a bug that the focus of a new window that had never calculated "visibility" loses focus easily.
It fixes this bug.

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

index f219163646e24dd8d1ec48e6d5f65a832e2dd82b..5b9725b31f0f3a10ac272355faa252472b9495df 100644 (file)
@@ -890,7 +890,10 @@ _e_client_focus_can_take(E_Client *ec)
         if (_e_client_check_really_iconified(ec))
           return EINA_FALSE;
         if (ec->visibility.obscured == E_VISIBILITY_UNKNOWN)
-          return EINA_FALSE;
+          {
+             if (!evas_object_visible_get(ec->frame))
+               return EINA_FALSE;
+          }
      }
 
    above_ec = _e_client_check_fully_contain_by_above(ec, EINA_FALSE);