diff options
author | Guilherme Iscaro <iscaro@profusion.mobi> | 2016-12-06 14:36:50 -0200 |
---|---|---|
committer | Bruno Dilly <bdilly@profusion.mobi> | 2016-12-12 14:59:22 -0200 |
commit | 9609dd7e0fef822284cc6fb3ff6d397f47866241 (patch) | |
tree | f2e6d604c63399ce66d06a9936770e6428652d8e | |
parent | 23278816b6b75e2ce0c9e0d2f07bfaae8ad230f1 (diff) | |
download | efl-9609dd7e0fef822284cc6fb3ff6d397f47866241.tar.gz |
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.
-rw-r--r-- | src/lib/evas/canvas/evas_focus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_focus.c b/src/lib/evas/canvas/evas_focus.c index 9269985073..36f265c1b0 100644 --- a/src/lib/evas/canvas/evas_focus.c +++ b/src/lib/evas/canvas/evas_focus.c @@ -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; |