Evas: Objects must not be focused with the seat is not allowed to emit events.

Seats that are not allowed to emit events must not be able to focus objects.
This commit is contained in:
Guilherme Iscaro 2016-12-06 14:36:50 -02:00 committed by Bruno Dilly
parent 23278816b6
commit 9609dd7e0f
1 changed files with 3 additions and 0 deletions

View File

@ -167,6 +167,9 @@ _efl_canvas_object_seat_focus_add(Eo *eo_obj,
if (efl_input_device_type_get(seat) != EFL_INPUT_DEVICE_CLASS_SEAT)
return EINA_FALSE;
if (!efl_input_seat_event_filter_get(eo_obj, seat))
return EINA_FALSE;
if (_already_focused(obj->focused_by_seats, seat))
goto end;