evas_events: fix wrong event listening accepted/tizen/unified/20190701.111803 submit/tizen/20190628.043345
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Fri, 28 Jun 2019 02:24:47 +0000 (11:24 +0900)
committerYeongjong Lee <yj34.lee@samsung.com>
Fri, 28 Jun 2019 02:25:03 +0000 (11:25 +0900)
commita04561e9fbb4e0460df18446d03a5f54b1a20da3
tree6ded8f8c1c1e1be666ed734e3d0784948e9bcef0
parentc446e00b120be709d2a9de2531f25d8c28b3929c
evas_events: fix wrong event listening

Summary:
EFL_EVENT_FOCUS_IN is wrong here, EFL_EVENT_FOCUS_IN is called on object
that received object focus. Not canvas focus, however, the code in the
callback there seems to be mainly for canvas focus handling.

Additionally, in evas_events, the event handler that was listening for
the canvas focus in / out events expected a event type, which is also
not correct, because the canvas focus in / out does not have one. In
order to catch such errors later more easily, there is now a safety
check, so we really fetched the correct seat.

Reviewers: YOhoho, zmike, segfaultxavi

Reviewed By: YOhoho

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9191
src/lib/evas/canvas/evas_events.c
src/lib/evas/canvas/evas_main.c
src/tests/evas/evas_suite.c
src/tests/evas/evas_suite.h
src/tests/evas/evas_test_focus.c [new file with mode: 0644]
src/tests/evas/meson.build