ecore-wl2: Fix issue(s) of setting wrong event device
authorChris Michael <cp.michael@samsung.com>
Tue, 20 Jun 2017 15:59:36 +0000 (11:59 -0400)
committerChris Michael <cp.michael@samsung.com>
Tue, 20 Jun 2017 15:59:36 +0000 (11:59 -0400)
commit52f35fde0ce3073d9fcc45aa3343fd8a25bf7909
tree04a4bb6734553e424312bcbcae1b161db5689942
parentfb6530ca2ee9d63bef50c985ea91bbf7ba5321c4
ecore-wl2: Fix issue(s) of setting wrong event device

As we may have both a pointer and touch device on a given system, we
need to accurately set event->device when sending mouse move, wheel,
down, and up events. Previous code here would always try to find a
mouse device first which could potentially end up setting the wrong
event->device (if a touch device also existed).

This patch fixes the issue by comparing the window used for the event
to our focused windows (either mouse or touch) and setting the proper
event->device based on that.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wl2/ecore_wl2_input.c