diff options
| -rw-r--r-- | driver/multitouch.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/driver/multitouch.c b/driver/multitouch.c index 0809948..888c4c4 100644 --- a/driver/multitouch.c +++ b/driver/multitouch.c | |||
| @@ -215,11 +215,9 @@ static void handle_gestures(LocalDevicePtr local, | |||
| 215 | vswipe = 0; | 215 | vswipe = 0; |
| 216 | hswipe = 0; | 216 | hswipe = 0; |
| 217 | } | 217 | } |
| 218 | for (i = 0; i < DIM_BUTTON; i++) { | 218 | foreach_bit(i, gs->btmask) |
| 219 | if (GETBIT(gs->btmask, i)) | 219 | xf86PostButtonEvent(local->dev, FALSE, |
| 220 | xf86PostButtonEvent(local->dev, FALSE, | 220 | i + 1, GETBIT(gs->btdata, i), 0, 0); |
| 221 | i + 1, GETBIT(gs->btdata, i), 0, 0); | ||
| 222 | } | ||
| 223 | if (GETBIT(gs->type, GS_MOVE)) | 221 | if (GETBIT(gs->type, GS_MOVE)) |
| 224 | xf86PostMotionEvent(local->dev, 0, 0, 2, gs->dx, gs->dy); | 222 | xf86PostMotionEvent(local->dev, 0, 0, 2, gs->dx, gs->dy); |
| 225 | 223 | ||
