diff options
author | Guilherme Iscaro <iscaro@profusion.mobi> | 2016-12-06 14:36:50 -0200 |
---|---|---|
committer | Guilherme Iscaro <iscaro@profusion.mobi> | 2016-12-09 11:36:12 -0200 |
commit | 4508d8405d36f7730c8cf67c022c6df610d90d7d (patch) | |
tree | 3d16ddf4a17e7630b1a54bcc9de44a009aa14c96 | |
parent | cdc8b2fcb88d67025040b432b7886540913c62bf (diff) | |
download | efl-4508d8405d36f7730c8cf67c022c6df610d90d7d.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; |