summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/efl_ui_widget.c')
-rw-r--r--src/lib/elementary/efl_ui_widget.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_widget.c b/src/lib/elementary/efl_ui_widget.c
index c5205f96b7..c9572d9b2e 100644
--- a/src/lib/elementary/efl_ui_widget.c
+++ b/src/lib/elementary/efl_ui_widget.c
@@ -483,11 +483,11 @@ _eval_registration_candidate(Eo *obj, Elm_Widget_Smart_Data *pd, Eina_Bool *shou
*should = *want_full = EINA_FALSE;
//can focus can be overridden by the following properties
- if (!efl_isa(elm_widget_top_get(obj), EFL_UI_WIN_CLASS) ||
- (!pd->parent_obj) ||
+ if ((!pd->parent_obj) ||
+ (!evas_object_visible_get(obj)) ||
+ !efl_isa(elm_widget_top_get(obj), EFL_UI_WIN_CLASS) ||
(_tree_disabled_or_unfocusable(obj)) ||
- (_tree_custom_chain_missing(obj)) ||
- (!evas_object_visible_get(obj)))
+ (_tree_custom_chain_missing(obj)))
return;
if (pd->can_focus)