]>
Commit | Line | Data |
---|---|---|
cca2d2ac JR |
1 | diff -up clutter-1.16.0/clutter/evdev/clutter-device-manager-evdev.c.jx clutter-1.16.0/clutter/evdev/clutter-device-manager-evdev.c |
2 | --- clutter-1.16.0/clutter/evdev/clutter-device-manager-evdev.c.jx 2013-09-22 13:22:30.000000000 -0400 | |
3 | +++ clutter-1.16.0/clutter/evdev/clutter-device-manager-evdev.c 2013-10-07 16:48:28.232916813 -0400 | |
4 | @@ -535,11 +535,6 @@ dispatch_one_event (ClutterEventSource * | |
5 | else if (e->code == BTN_TOOL_FINGER && e->value != AUTOREPEAT_VALUE) | |
6 | { | |
7 | source->touching = e->value; | |
8 | - if (e->value) | |
9 | - { | |
10 | - source->last_x = source->cur_x; | |
11 | - source->last_y = source->cur_y; | |
12 | - } | |
13 | } | |
14 | else | |
15 | { | |
16 | @@ -580,6 +575,22 @@ dispatch_one_event (ClutterEventSource * | |
17 | break; | |
18 | ||
19 | case EV_ABS: | |
20 | + /* first touch is magic */ | |
21 | + if (source->touching == 1) | |
22 | + { | |
23 | + switch (e->code) | |
24 | + { | |
25 | + case ABS_X: | |
26 | + source->last_x = source->cur_x = e->value; | |
27 | + break; | |
28 | + case ABS_Y: | |
29 | + source->last_y = source->cur_y = e->value; | |
30 | + source->touching = 2; /* note, assumes delivery order... */ | |
31 | + break; | |
32 | + } | |
33 | + break; | |
34 | + } | |
35 | + | |
36 | switch (e->code) | |
37 | { | |
38 | case ABS_X: |