summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/multitouch.c12
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,
128 int i; 128 int i;
129 if (GETBIT(gs->type, GS_MOVE)) { 129 if (GETBIT(gs->type, GS_MOVE)) {
130 xf86PostMotionEvent(local->dev, 0, 0, 2, gs->dx, gs->dy); 130 xf86PostMotionEvent(local->dev, 0, 0, 2, gs->dx, gs->dy);
131 //xf86Msg(X_INFO, "motion: %d %d\n", dx, dy); 131 //xf86Msg(X_INFO, "motion: %d %d\n", gs->dx, gs->dy);
132 } 132 }
133 if (GETBIT(gs->type, GS_BUTTON)) { 133 for (i = 0; i < gs->nbt; i++) {
134 for (i = 0; i < gs->nbt; i++) 134 xf86PostButtonEvent(local->dev, FALSE,
135 xf86PostButtonEvent(local->dev, FALSE, 135 gs->btix[i], gs->btval[i],
136 gs->btix[i], gs->btval[i], 136 0, 0);
137 0, 0); 137 xf86Msg(X_INFO, "button: %d %d\n", gs->btix[i], gs->btval[i]);
138 } 138 }
139} 139}
140 140