From: Markus H. <mar...@we...> - 2010-03-23 18:20:46
|
This caused setting a wrong threshold (sensitivity) value for the mouse when clicking "Cancel" to restore the original settings. Also fix an equation in a related comment. --- src/lxinput.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxinput.c b/src/lxinput.c index b37a6bf..5c756ac 100644 --- a/src/lxinput.c +++ b/src/lxinput.c @@ -61,7 +61,7 @@ static void on_mouse_accel_changed(GtkRange* range, gpointer user_data) static void on_mouse_threshold_changed(GtkRange* range, gpointer user_data) { - /* threshold = sensitivity - 100. The lower the threshold, the higher the sensitivity */ + /* threshold = 110 - sensitivity. The lower the threshold, the higher the sensitivity */ threshold = 110 - (int)gtk_range_get_value(range); XChangePointerControl(GDK_DISPLAY(), False, True, 0, 10, threshold); @@ -269,7 +269,7 @@ int main(int argc, char** argv) threshold = old_threshold; left_handed = old_left_handed; XChangePointerControl(GDK_DISPLAY(), True, True, - accel, 10, (110 - threshold)); + accel, 10, threshold); set_left_handed_mouse(); } -- 1.7.0.3.257.gcd709 |