diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-08-19 20:03:15 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-08-19 20:03:15 +0200 |
| commit | a704984e03d28b4be40e12c43be1b163bc9e09e2 (patch) | |
| tree | c4720a59aa77918ffef742d7ec7ef2a7e2eda16e /src/grail-inserter.c | |
| parent | cb2cad3b8c506a08a6bdad548a10ff47f85ef38b (diff) | |
Simplify touch machinery
To be able to model touch information uniformly across all supported
devices, the semantics of the touch attributes has to be treated
explicitly. Drop the generic touch property array and replace it
by an actual structure. In addition, the touch-engine abstraction
turned out to not be needed, so drop it as well.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/grail-inserter.c')
| -rw-r--r-- | src/grail-inserter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/grail-inserter.c b/src/grail-inserter.c index 8b0296e..9769d94 100644 --- a/src/grail-inserter.c +++ b/src/grail-inserter.c | |||
| @@ -187,8 +187,8 @@ static void setup_new_gestures(struct grail *ge, | |||
| 187 | int ncoord = 0; | 187 | int ncoord = 0; |
| 188 | grail_mask_foreach(i, span, sizeof(span)) { | 188 | grail_mask_foreach(i, span, sizeof(span)) { |
| 189 | const struct touch *t = &frame->touch[i]; | 189 | const struct touch *t = &frame->touch[i]; |
| 190 | coord[ncoord].x = t->prop[TP_POS_X]; | 190 | coord[ncoord].x = t->x; |
| 191 | coord[ncoord].y = t->prop[TP_POS_Y]; | 191 | coord[ncoord].y = t->y; |
| 192 | transform_pos(gin, &coord[ncoord]); | 192 | transform_pos(gin, &coord[ncoord]); |
| 193 | ncoord++; | 193 | ncoord++; |
| 194 | } | 194 | } |
