chiark / gitweb /
Button zones: Remove inexplicable pad_with/2 offset
[xf86-input-mtrack.git] / src / gestures.c
index 5262fbd48442045789630384f9e93a56f1137d55..208b39ac46c40cacf8b7e12b2cf9f7b208b11a28 100644 (file)
@@ -224,7 +224,7 @@ static void buttons_update(struct Gestures* gs,
 
                                if (zones > 0) {
                                        width = ((double)cfg->pad_width)/((double)zones);
-                                       pos = cfg->pad_width / 2 + ms->touch[earliest].x;
+                                       pos = ms->touch[earliest].x;
 #ifdef DEBUG_GESTURES
                                        xf86Msg(X_INFO, "buttons_update: pad width %d, zones %d, zone width %f, x %d\n",
                                                cfg->pad_width, zones, width, pos);