diff options
Diffstat (limited to 'src/multitouch.c')
| -rw-r--r-- | src/multitouch.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/multitouch.c b/src/multitouch.c index f6e5305..fa966ce 100644 --- a/src/multitouch.c +++ b/src/multitouch.c | |||
| @@ -231,12 +231,13 @@ static void handle_gestures(LocalDevicePtr local, | |||
| 231 | int hstep = 1 + | 231 | int hstep = 1 + |
| 232 | hscroll_fraction * (caps->abs_position_x.maximum - | 232 | hscroll_fraction * (caps->abs_position_x.maximum - |
| 233 | caps->abs_position_x.minimum); | 233 | caps->abs_position_x.minimum); |
| 234 | int i; | 234 | int i; |
| 235 | for (i = 0; i < gs->nbt; i++) { | 235 | for (i = 0; i < DIM_BUTTON; i++) { |
| 236 | xf86PostButtonEvent(local->dev, FALSE, | 236 | if (GETBIT(gs->btmask, i)) { |
| 237 | gs->btix[i], gs->btval[i], | 237 | xf86PostButtonEvent(local->dev, FALSE, |
| 238 | 0, 0); | 238 | i + 1, GETBIT(gs->btdata, i), 0, 0); |
| 239 | TRACE2("button: %d %d\n", gs->btix[i], gs->btval[i]); | 239 | TRACE2("button bit: %d %d\n", i, GETBIT(gs->btdata, i)); |
| 240 | } | ||
| 240 | } | 241 | } |
| 241 | if (GETBIT(gs->type, GS_MOVE)) { | 242 | if (GETBIT(gs->type, GS_MOVE)) { |
| 242 | xf86PostMotionEvent(local->dev, 0, 0, 2, | 243 | xf86PostMotionEvent(local->dev, 0, 0, 2, |
