aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2014-07-04 11:16:59 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2014-07-04 11:16:59 +0900
commit70a33c9d118b9c5bd07a5bbb10491e3d8d1be668 (patch)
treef60c049ab7461a7389aa4b3eea8fe4be0070930a /legacy/elementary/src/lib/elm_win.c
parentctxpopup: Add get_items, get_last_item, get_first_item, get_next_item and get... (diff)
downloadefl-70a33c9d118b9c5bd07a5bbb10491e3d8d1be668.tar.gz
focus: when focus_highlight is enabled, it should be shown immediately.
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 11ca2d35ab..80e0ce1bc9 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -2281,7 +2281,16 @@ _elm_win_focus_highlight_init(Elm_Win_Data *sd)
EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT,
_elm_win_object_focus_out, sd->obj);
- sd->focus_highlight.cur.target = NULL;
+ sd->focus_highlight.cur.target = _elm_win_focus_target_get(evas_focus_get(sd->evas));
+ if (sd->focus_highlight.cur.target)
+ {
+ if (elm_widget_highlight_in_theme_get(sd->focus_highlight.cur.target))
+ sd->focus_highlight.cur.in_theme = EINA_TRUE;
+ else
+ _elm_win_focus_target_callbacks_add(sd);
+ }
+
+ sd->focus_highlight.prev.target = NULL;
sd->focus_highlight.fobj = edje_object_add(sd->evas);
sd->focus_highlight.theme_changed = EINA_TRUE;