Bug #1241 ยป xf86-input-mouse-float.diff
| src/mouse.c | ||
|---|---|---|
|
if (mousepriv) {
|
||
|
mousepriv->fracdx += mousepriv->sensitivity*dx;
|
||
|
mousepriv->fracdy += mousepriv->sensitivity*dy;
|
||
|
if (isnan(mousepriv->fracdx))
|
||
|
mousepriv->fracdx = 0;
|
||
|
if (isnan(mousepriv->fracdy))
|
||
|
mousepriv->fracdy = 0;
|
||
|
mousepriv->fracdx -= ( dx=(int)(mousepriv->fracdx) );
|
||
|
mousepriv->fracdy -= ( dy=(int)(mousepriv->fracdy) );
|
||
|
}
|
||