summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 39c274b..9f5d160 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -300,7 +300,7 @@ EvdevReadInput(InputInfoPtr pInfo)
if (pEvdev->tool) { /* meaning, touch is active */
if (pEvdev->old_x != -1)
dx = pEvdev->abs_x - pEvdev->old_x;
- if (pEvdev->old_x != -1)
+ if (pEvdev->old_y != -1)
dy = pEvdev->abs_y - pEvdev->old_y;
pEvdev->old_x = pEvdev->abs_x;
pEvdev->old_y = pEvdev->abs_y;