Skip to content
Snippets Groups Projects
Forked from xorg / xserver
6574 commits behind, 84 commits ahead of the upstream repository.
Peter Hutterer's avatar
Peter Hutterer authored
XI 1.x only allows for first + num valuators, so if a device sends data for
valuators 0 and 2+ only (i.e. valuator 1 is missing) we still need to get
the data for that from somewhere.
XI 1.x uses the hack of an unset valuator mask to get the right coordinates,
i.e. we set the value but don't set the mask for it so XI2 events have the
right mask.

For an absolute device in relative mode, this broke in b28a1af5, the
value was now always 0. This wasn't visible on the cursor, only in an XI 1.x
client. The GIMP e.g. sees jumps to x/0 every few events.

Drop the condition introduced in b28a1af5, data in valuators is always
absolute, regardless of the mode.

Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 3d875663)
0857f3c7
History
Name Last commit Last update