From 42a2a62b4919def06b0027c7b1f4e545f208e632 Mon Sep 17 00:00:00 2001 From: "Junseok, Kim" Date: Mon, 6 Apr 2020 11:20:35 +0900 Subject: [PATCH] e_client: don't set focus if ec is already focused Change-Id: I9bf51b6db7be09a53e697f7d099c28bedd4d1249 Signed-off-by: Junseok, Kim --- src/bin/e_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_client.c b/src/bin/e_client.c index c6287bf6ab..66207cf95a 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -1060,7 +1060,7 @@ e_client_revert_focus(E_Client *ec) if (e_config->focus_policy_ext == E_FOCUS_EXT_TOP_STACK) { focus_ec = _e_client_focus_topmost_focusable_get(); - if (focus_ec && + if (focus_ec && (focus_ec != focused) && (!focus_ec->iconic || focus_ec->exp_iconify.buffer_flush)) { ELOGF("FOCUS", "focus set | topmost_focus", focus_ec); @@ -3600,7 +3600,7 @@ _e_client_focus_calculate(E_Zone *zone) if (e_config->focus_policy_ext == E_FOCUS_EXT_TOP_STACK) { ec = _e_client_focus_topmost_focusable_get(); - if (ec) + if (ec && (ec != focused)) { ELOGF("FOCUS", "focus set | topmost focus calculate", ec); e_client_frame_focus_set(ec, EINA_TRUE); -- 2.34.1