diff options
Diffstat (limited to 'src/multitouch.c')
-rw-r--r-- | src/multitouch.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/multitouch.c b/src/multitouch.c index 8411718..f46d92e 100644 --- a/src/multitouch.c +++ b/src/multitouch.c @@ -128,13 +128,13 @@ static void handle_gestures(LocalDevicePtr local, int i; if (GETBIT(gs->type, GS_MOVE)) { xf86PostMotionEvent(local->dev, 0, 0, 2, gs->dx, gs->dy); - //xf86Msg(X_INFO, "motion: %d %d\n", dx, dy); + //xf86Msg(X_INFO, "motion: %d %d\n", gs->dx, gs->dy); } - if (GETBIT(gs->type, GS_BUTTON)) { - for (i = 0; i < gs->nbt; i++) - xf86PostButtonEvent(local->dev, FALSE, - gs->btix[i], gs->btval[i], - 0, 0); + for (i = 0; i < gs->nbt; i++) { + xf86PostButtonEvent(local->dev, FALSE, + gs->btix[i], gs->btval[i], + 0, 0); + xf86Msg(X_INFO, "button: %d %d\n", gs->btix[i], gs->btval[i]); } } |