diff options
author | YeongJong Lee <yj34.lee@samsung.com> | 2018-04-12 14:35:06 +0200 |
---|---|---|
committer | Marcel Hollerbach <marcel@osg.samsung.com> | 2018-04-13 11:07:34 +0200 |
commit | 1d182a44f31df3e203d2679e0b3ca6f3de8ec074 (patch) | |
tree | 7f325cf08f1e49ee5c21f87587df56c033629a47 | |
parent | 01272c71d0be45afcc9629038602b1963fa6bbd4 (diff) | |
download | efl-1d182a44f31df3e203d2679e0b3ca6f3de8ec074.tar.gz |
efl_ui_win: add "focused" and "unfocused" signals emission
Summary:
Win is root of focus manager. it means Win is logical node and "focused" and
"unfocused" signals in Win aren't handled by focus manager.
Win needs to emit the signals itself.
Reported by eagleeye, jsuya
Test Plan:
1. elementary_test -to 'window states'
2. Check that "WIN FOCUS: focused" and "WIN FOCUS: unfocused" printed.
Reviewers: bu5hm4n
Reviewed By: bu5hm4n
Subscribers: jsuya, cedric, eagleeye
Differential Revision: https://phab.enlightenment.org/D5931
-rw-r--r-- | src/lib/elementary/efl_ui_win.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index db4f97cdb5..ecddd2ff97 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -1239,6 +1239,7 @@ _elm_win_focus_in(Ecore_Evas *ee) } evas_object_smart_callback_call(obj, SIG_FOCUS_IN, NULL); + evas_object_smart_callback_call(obj, SIG_WIDGET_FOCUSED, NULL); ELM_WIN_DATA_ALIVE_CHECK(obj, sd); sd->focus_highlight.cur.visible = EINA_TRUE; _elm_win_focus_highlight_reconfigure_job_start(sd); @@ -1281,6 +1282,7 @@ _elm_win_focus_out(Ecore_Evas *ee) _elm_widget_top_win_focused_set(obj, EINA_FALSE); ELM_WIN_DATA_ALIVE_CHECK(obj, sd); evas_object_smart_callback_call(obj, SIG_FOCUS_OUT, NULL); + evas_object_smart_callback_call(obj, SIG_WIDGET_UNFOCUSED, NULL); ELM_WIN_DATA_ALIVE_CHECK(obj, sd); sd->focus_highlight.cur.visible = EINA_FALSE; _elm_win_focus_highlight_reconfigure_job_start(sd); |