diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 1ad66fb066db6905c949706d503c7f8ac3d4d646..501744ac6056708f69757c308d34ebe57604d325 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -143,10 +143,10 @@ tp_motion_hysteresis(struct tp_dispatch *tp, } else { x = evdev_hysteresis(x, t->hysteresis_center.x, - tp->hysteresis_margin.x); + tp->hysteresis.margin.x); y = evdev_hysteresis(y, t->hysteresis_center.y, - tp->hysteresis_margin.y); + tp->hysteresis.margin.y); t->hysteresis_center.x = x; t->hysteresis_center.y = y; t->point.x = x; @@ -2899,8 +2899,8 @@ tp_init_hysteresis(struct tp_dispatch *tp) res_x = tp->device->abs.absinfo_x->resolution; res_y = tp->device->abs.absinfo_y->resolution; - tp->hysteresis_margin.x = res_x/2; - tp->hysteresis_margin.y = res_y/2; + tp->hysteresis.margin.x = res_x/2; + tp->hysteresis.margin.y = res_y/2; } static void diff --git a/src/evdev-mt-touchpad.h b/src/evdev-mt-touchpad.h index 9d9f0826b39fe48f886cac5231119b7ed7aced74..6110a2bcbc745be10f67426bed078b092a6e2370 100644 --- a/src/evdev-mt-touchpad.h +++ b/src/evdev-mt-touchpad.h @@ -269,7 +269,9 @@ struct tp_dispatch { double orientation_to_angle; } touch_size; - struct device_coords hysteresis_margin; + struct { + struct device_coords margin; + } hysteresis; struct { double x_scale_coeff;