mirror of
https://github.com/X11Libre/xf86-input-mouse.git
synced 2026-03-24 01:24:06 +00:00
MouseCtrl doesn't need to save values we never use
Makes it into a no-op, like evdev's PtrCtrl function, now that mouse acceleration is completely handled in dix. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Patrick E. Kane <pekane52 at gmail.com> Reviewed-by: Simon Thum <simon.thum@gmx.de>
This commit is contained in:
18
src/mouse.c
18
src/mouse.c
@@ -1546,26 +1546,14 @@ post_event:
|
||||
|
||||
/*
|
||||
* MouseCtrl --
|
||||
* Alter the control parameters for the mouse. Note that all special
|
||||
* protocol values are handled by dix.
|
||||
* Alter the control parameters for the mouse. Note that all
|
||||
* settings are now handled by dix.
|
||||
*/
|
||||
|
||||
static void
|
||||
MouseCtrl(DeviceIntPtr device, PtrCtrl *ctrl)
|
||||
{
|
||||
InputInfoPtr pInfo;
|
||||
MouseDevPtr pMse;
|
||||
|
||||
pInfo = device->public.devicePrivate;
|
||||
pMse = pInfo->private;
|
||||
|
||||
#ifdef EXTMOUSEDEBUG
|
||||
ErrorF("MouseCtrl pMse=%p\n", pMse);
|
||||
#endif
|
||||
|
||||
pMse->num = ctrl->num;
|
||||
pMse->den = ctrl->den;
|
||||
pMse->threshold = ctrl->threshold;
|
||||
/* This function intentionally left blank */
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -214,9 +214,6 @@ typedef struct _MouseDevRec {
|
||||
int oldBaudRate;
|
||||
int sampleRate;
|
||||
int lastButtons;
|
||||
int threshold; /* acceleration */
|
||||
int num;
|
||||
int den;
|
||||
int buttons; /* # of buttons */
|
||||
int emulateState; /* automata state for 2 button mode */
|
||||
Bool emulate3Buttons;
|
||||
|
||||
Reference in New Issue
Block a user