evas_focus: skip focus set if the focus state is the same

This commit is contained in:
Marcel Hollerbach 2017-09-30 19:29:00 +02:00
parent 871b6ac0ad
commit 935722aac1
1 changed files with 2 additions and 0 deletions

View File

@ -280,6 +280,8 @@ _efl_canvas_object_key_focus_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Ei
return;
MAGIC_CHECK_END();
if (_efl_canvas_object_seat_focus_check(eo_obj, obj, NULL) == focus) return;
if (focus)
_efl_canvas_object_seat_focus_add(eo_obj, obj, NULL);
else