diff options
author | Éric Brunet <Eric.Brunet@lps.ens.fr> | 2014-09-30 23:04:55 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-12-17 14:42:11 +1000 |
commit | 511498478b49aa39629615c110c9d0129fa6bbef (patch) | |
tree | a5ed26a0d1c30873f75daa2ca68a8c87d1d7fc56 /src/apple.c | |
parent | Don't update old_vals when not in EVDEV_RELATIVE_MODE (diff) | |
download | xf86-input-evdev-511498478b49aa39629615c110c9d0129fa6bbef.tar.gz xf86-input-evdev-511498478b49aa39629615c110c9d0129fa6bbef.tar.bz2 xf86-input-evdev-511498478b49aa39629615c110c9d0129fa6bbef.zip |
Move EVDEV_RELATIVE_MODE logic earlier
When in EVDEV_RELATIVE_MODE, after converting the absolute valuators, the
code unsets pEvdev->abs_queued. This is wrong if there are some absolute
valuators which are not positions, such as a pressure valuators, because
events on these valuators would be lost.
This patch fixes the problem by doing the absolute->relative translation
early. This way, abs_queued is not set and then unset when receiving
absolute valuators representing positions. Other absolute events now set abs_queued
and will be processed.
Signed-off-by: Éric Brunet <Eric.Brunet@lps.ens.fr>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/apple.c')
0 files changed, 0 insertions, 0 deletions