evdev: send old valuator inside event frame when the other is missing
authorTiago Vignatti <tiago.vignatti@intel.com>
Thu, 8 Dec 2011 10:18:16 +0000 (12:18 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:26 +0000 (17:51 +0100)
commit75953314cf970067f8d3109fc895a657045b347e
treef9b4e4a74703ba474cc050b155bc188f252a09d5
parentcb3c6ad5c6156887990e07e30bcee919e12faa43
evdev: send old valuator inside event frame when the other is missing

when a motion is being performed on ts device, only one axis can be sent
through the evdev bytestream whereas the other could be omitted. For instance:

   -------------- SYN_REPORT ------------
   type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 22208
   type 3 (EV_ABS), code 58 (ABS_MT_PRESSURE), value 631
   type 3 (EV_ABS), code 0 (ABS_X), value 22208
   -------------- SYN_REPORT ------------

on such case we'd have to send the compositor the old value of Y. Commit
f547bd36 introduced this bug cause it was sending zeroed coordinate and not
the old one.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
compositor/evdev.c