Skip to content

Commit

Permalink
Apply patch provided by Markus Heidelberg <markus.heidelberg@web.de> …
Browse files Browse the repository at this point in the history
…for #2980686 lxinput: wrongly transformed mouse threshold parameter.
  • Loading branch information
PCMan committed Aug 2, 2010
1 parent c3ae3b8 commit 7f5e542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -273,7 +273,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();
}

Expand Down

0 comments on commit 7f5e542

Please sign in to comment.