Skip to content
  • Éric Brunet's avatar
    Change the logic concerning EVDEV_RELATIVE_MODE and in_proximity · f59585b3
    Éric Brunet authored and Peter Hutterer's avatar Peter Hutterer committed
    
    
    When not in_proximity, we don't really trust data, even though a valuator
    sent just before a in_proximity event might actually be important. The
    present code for EVDEV_RELATIVE_MODE throws away all data if not
    in_proximity, which is a little bit too much. This patch allows for
    relative values to be calculated and old_vals to be updated even if not
    in_proximity, but will prevent evdev to sending (presumably) wrong
    information to the X server. But at least, old_vals will be correctly
    filled when the device comes into proximity again.
    
    Signed-off-by: default avatarÉric Brunet <Eric.Brunet@lps.ens.fr>
    Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
    f59585b3