1
Fix touchup problem on touchpads
3
Index: xserver-xorg-input-evdev/src/evdev.c
4
===================================================================
5
--- xserver-xorg-input-evdev.orig/src/evdev.c 2011-01-28 10:53:25.000000000 +1100
6
+++ xserver-xorg-input-evdev/src/evdev.c 2011-01-28 12:04:51.761087000 +1100
10
/* convert to relative motion for touchpads */
11
- if (pEvdev->abs_queued && (pEvdev->flags & EVDEV_RELATIVE_MODE)) {
12
+ if (pEvdev->flags & EVDEV_RELATIVE_MODE) {
13
if (pEvdev->in_proximity) {
14
if (pEvdev->old_vals[0] != -1)
15
pEvdev->delta[REL_X] = pEvdev->vals[0] - pEvdev->old_vals[0];
18
pEvdev->old_vals[0] = pEvdev->old_vals[1] = -1;
20
- pEvdev->abs_queued = 0;
21
- pEvdev->rel_queued = 1;
22
+ if (pEvdev->abs_queued) {
23
+ pEvdev->abs_queued = 0;
24
+ pEvdev->rel_queued = 1;
28
if (pEvdev->rel_queued) {