From 185f5c1a8b52b2c48fdea36c46b9a91b2afcc43f Mon Sep 17 00:00:00 2001 From: "Junseok, Kim" Date: Fri, 20 Sep 2019 17:20:22 +0900 Subject: [PATCH] e_client: check buffer_flush during revert_focus there is bug that didn't send iconic_state_changed event to client. if the client has buffer_flush off, that the client can uniconify without send iconic_state_changed event in e_comp_intercept_focus. this patch fix it with check buffer_flush before doing revert_focus. Change-Id: I0f4932364f0444d544c67c12cd46ece5d32fd994 --- src/bin/e_client.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bin/e_client.c b/src/bin/e_client.c index 87ac119c28..06df3e161f 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -998,8 +998,11 @@ 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(); - ELOGF("FOCUS", "focus set | topmost_focus", focus_ec); - e_client_frame_focus_set(focus_ec, EINA_TRUE); + if (!focus_ec->iconic || focus_ec->exp_iconify.buffer_flush) + { + ELOGF("FOCUS", "focus set | topmost_focus", focus_ec); + e_client_frame_focus_set(focus_ec, EINA_TRUE); + } return; } -- 2.34.1