aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_focus.c
diff options
context:
space:
mode:
authorGuilherme Iscaro <iscaro@profusion.mobi>2016-12-06 14:36:50 -0200
committerBruno Dilly <bdilly@profusion.mobi>2016-12-12 14:59:22 -0200
commit9609dd7e0fef822284cc6fb3ff6d397f47866241 (patch)
treef2e6d604c63399ce66d06a9936770e6428652d8e /src/lib/evas/canvas/evas_focus.c
parentEfl.Canvas.Object: Override efl_event_callback_[legacy]_call. (diff)
downloadefl-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.
Diffstat (limited to 'src/lib/evas/canvas/evas_focus.c')
-rw-r--r--src/lib/evas/canvas/evas_focus.c3
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;