forked from enlightenment/efl
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
This commit is contained in:
parent
01272c71d0
commit
1d182a44f3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue