summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2017-10-25 14:17:01 +0200
committerMarcel Hollerbach <marcel@osg.samsung.com>2017-10-25 14:36:13 +0200
commitfa49488f3a08794bd9fbe72f2400cb19b59528e4 (patch)
tree1187707d2ef4d78e54f2b5afd3e01e14064aa268
parentf440cc4eb6edbda0a0093df785ab1bc02ee21835 (diff)
elm_main: make sure we dont go deeper than the widget top level
-rw-r--r--src/lib/elementary/elm_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c
index 81cbce4eeb..90647b30aa 100644
--- a/src/lib/elementary/elm_main.c
+++ b/src/lib/elementary/elm_main.c
@@ -1695,8 +1695,9 @@ _elm_widget_focus(Evas_Object *obj)
1695 new_manager = efl_ui_focus_user_manager_get(m2); 1695 new_manager = efl_ui_focus_user_manager_get(m2);
1696 1696
1697 /* also delay the registeration if we miss a manager half way */ 1697 /* also delay the registeration if we miss a manager half way */
1698 if (!new_manager) 1698 if (!new_manager && m2 != elm_widget_top_get(obj))
1699 { 1699 {
1700 efl_key_data_set(m, "__delayed_focus_set", obj);
1700 efl_event_callback_add(m2, EFL_UI_FOCUS_USER_EVENT_MANAGER_CHANGED, _manager_changed, obj); 1701 efl_event_callback_add(m2, EFL_UI_FOCUS_USER_EVENT_MANAGER_CHANGED, _manager_changed, obj);
1701 return; 1702 return;
1702 } 1703 }