From 175c388280ae5cdbf46a0db4ad1317b9ecc60079 Mon Sep 17 00:00:00 2001 From: Yeongjong Lee Date: Thu, 26 Nov 2020 08:26:14 +0900 Subject: [PATCH] elm_focus: unset newest focus properly on revert focus logic If top win is not focused, newest focus is only set to true without clearing focus. in this process, there can be multiple focused object. This patch removes the code to check top win focus state before clearing focus in _if_focused_revert(). Change-Id: Iea82435f21567cf4d7cd99151b240e71c003e965 --- src/lib/elementary/efl_ui_widget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_widget.c b/src/lib/elementary/efl_ui_widget.c index 6030923..9ca05ff 100644 --- a/src/lib/elementary/efl_ui_widget.c +++ b/src/lib/elementary/efl_ui_widget.c @@ -9515,7 +9515,8 @@ _if_focused_revert(Evas_Object *obj, } else { - elm_object_focus_set(newest, EINA_FALSE); + if (_is_focused(newest)) + efl_ui_widget_focused_object_clear(newest); elm_object_focus_set(newest, EINA_TRUE); } } -- 2.7.4