ecore_drm2: Fix mouse pointer when using absolute coords
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 7 Jul 2016 07:01:58 +0000 (16:01 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 7 Jul 2016 07:15:59 +0000 (16:15 +0900)
commit570a398e290d93e2b6ef998b263004281f45097d
treeffbd3efc53eff097d509dde0764e8ba340638db2
parent0906506470a8f1058dd5840e874f515b8ee8ffc2
ecore_drm2: Fix mouse pointer when using absolute coords

Running E wl2 in KVM led to the following issue: integrated mouse
pointer would always be stuck at (0,0).

The reason was that calibration would never happen, and it's
required* for absolute pointing devices, such as the qemu mouse
integration.

Fix: Listen to device add and calibrate based on the first
output. No idea if we could calibrate on any other output,
or how this should be done in case of multiple screens.

[*] I believe calibration might actually not be required, as
    the absolute position is already the correct one when
    received from libinput.
src/lib/ecore_drm2/ecore_drm2_device.c
src/lib/ecore_drm2/ecore_drm2_private.h