ecore xi2: Discard "axis" inputs from standard mice
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 24 Aug 2016 08:44:32 +0000 (17:44 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 26 Aug 2016 01:18:01 +0000 (10:18 +0900)
commit7b25619213ead0d39001ce57320075b69fccdec2
tree5c7b3a1e857c5cab62dd835e0a9f08fc42854937
parent925878e931a46212f47be805abdf5b09b810dad4
ecore xi2: Discard "axis" inputs from standard mice

Mice in X with xi2 send Axis events which are badly defined,
and carry basically useless information, as we also receive
proper mouse events. Notably, all mice input events are
"Rel something" but in fact they are absolute values (even
the wheel information is a counter increasing every time you
scroll).

This should not break any application as such axis events
carried only values with label ECORE_AXIS_LABEL_UNKNOWN.
This also fixes a leak when n == 0 (no "valuator" found
in the list, this used to be unlikely, now happens at every
mouse event).
src/lib/ecore_x/xlib/ecore_x_xi2.c