Build with modular X.org libraries and headers.
composite/compwindow.c Don't damage unmoved windows. Let border clip reset
leave damage alone, pending actual damage for painting.
This commit is contained in:
@@ -1373,6 +1373,7 @@ KdMouseAccelerate (DeviceIntPtr device, int *dx, int *dy)
|
||||
PtrCtrl *pCtrl = &device->ptrfeed->ctrl;
|
||||
double speed = sqrt (*dx * *dx + *dy * *dy);
|
||||
double accel;
|
||||
#ifdef QUADRATIC_ACCELERATION
|
||||
double m;
|
||||
|
||||
/*
|
||||
@@ -1389,6 +1390,11 @@ KdMouseAccelerate (DeviceIntPtr device, int *dx, int *dy)
|
||||
m = (((double) pCtrl->num / (double) pCtrl->den - 1.0) /
|
||||
((double) pCtrl->threshold * 2.0));
|
||||
accel = m * speed + 1;
|
||||
#else
|
||||
accel = 1.0;
|
||||
if (speed > pCtrl->threshold)
|
||||
accel = (double) pCtrl->num / pCtrl->den;
|
||||
#endif
|
||||
*dx = accel * *dx;
|
||||
*dy = accel * *dy;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user