bdilly pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9609dd7e0fef822284cc6fb3ff6d397f47866241

commit 9609dd7e0fef822284cc6fb3ff6d397f47866241
Author: Guilherme Iscaro <[email protected]>
Date:   Tue Dec 6 14:36:50 2016 -0200

    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.
---
 src/lib/evas/canvas/evas_focus.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/evas/canvas/evas_focus.c b/src/lib/evas/canvas/evas_focus.c
index 9269985..36f265c 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;
 

-- 


Reply via email to