Skip to content

Commit 7f5e542

Browse files
committed
Apply patch provided by Markus Heidelberg <[email protected]> for #2980686 lxinput: wrongly transformed mouse threshold parameter.
1 parent c3ae3b8 commit 7f5e542

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lxinput.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static void on_mouse_accel_changed(GtkRange* range, gpointer user_data)
6161

6262
static void on_mouse_threshold_changed(GtkRange* range, gpointer user_data)
6363
{
64-
/* threshold = sensitivity - 100. The lower the threshold, the higher the sensitivity */
64+
/* threshold = 110 - sensitivity. The lower the threshold, the higher the sensitivity */
6565
threshold = 110 - (int)gtk_range_get_value(range);
6666
XChangePointerControl(GDK_DISPLAY(), False, True,
6767
0, 10, threshold);
@@ -273,7 +273,7 @@ int main(int argc, char** argv)
273273
threshold = old_threshold;
274274
left_handed = old_left_handed;
275275
XChangePointerControl(GDK_DISPLAY(), True, True,
276-
accel, 10, (110 - threshold));
276+
accel, 10, threshold);
277277
set_left_handed_mouse();
278278
}
279279

0 commit comments

Comments
 (0)