aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBartosz Brachaczek <b.brachaczek@gmail.com>2010-08-10 22:31:00 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2010-08-16 10:45:07 +1000
commited47c7f33e315f163a6aebeb3e1c8947004576fd (patch)
treea5904db9f212ca2bfd8f43b33f3693c0e892174f /src
parentDon't count BTN_TOUCH as tool. (#29428) (diff)
downloadxf86-input-evdev-ed47c7f33e315f163a6aebeb3e1c8947004576fd.tar.gz
xf86-input-evdev-ed47c7f33e315f163a6aebeb3e1c8947004576fd.tar.bz2
xf86-input-evdev-ed47c7f33e315f163a6aebeb3e1c8947004576fd.zip
evdev: Revert "Set all valuators for relative motion events (#24737)"
It isn't necessary to post zero-deltas to X Server. In order not to post uninitialized "v" array we should rather simply initialize it. This reverts commit c1f16a4f59a584ab4546c2f16e20b06703042057. Signed-off-by: Bartosz Brachaczek <b.brachaczek@gmail.com> Tested-by: Bartek Iwaniec <hash87@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 5ea230c..bdac330 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -386,7 +386,7 @@ EvdevProcessValuators(InputInfoPtr pInfo, int v[MAX_VALUATORS], int *num_v,
for (i = 0; i < REL_CNT; i++)
{
int map = pEvdev->axis_map[i];
- if (map != -1)
+ if (pEvdev->delta[i] && map != -1)
{
v[map] = pEvdev->delta[i];
if (map < first)