From 86dd673336d677d203bb4a101ebf4c62af352976 Mon Sep 17 00:00:00 2001 From: "Junseok, Kim" Date: Thu, 23 Apr 2020 18:07:33 +0900 Subject: [PATCH] e_client: Check evas_object_visible if ec's visibliety is UNKNOWN while focusable check 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 --- src/bin/e_client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/e_client.c b/src/bin/e_client.c index f219163646..5b9725b31f 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -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); -- 2.34.1