Commit d92d8554 authored by Peter Hutterer's avatar Peter Hutterer

filter: don't allow an accel factor of 0 on the flat profile

Leave a narrow gap so the mouse moves excruciatingly slow instead of not
moving at all. This allows to recover from overexcited mouse speed slider
movements. Peter Hutterer's avatarPeter Hutterer <>
parent c44c0286
......@@ -1342,7 +1342,7 @@ accelerator_set_speed_flat(struct motion_filter *filter,
* skipping over ever second pixel at 200% speed.
accel_filter->factor = 1 + speed_adjustment;
accel_filter->factor = max(0.005, 1 + speed_adjustment);
filter->speed_adjustment = speed_adjustment;
return true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment