mirror of
https://github.com/X11Libre/xf86-input-mouse.git
synced 2026-03-24 09:34:07 +00:00
Remove write-only field mouseFlags.
The flags were used to store ClearDTS and ClearRTR, but those options only resulted in log messages. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Tested-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
23
src/mouse.c
23
src/mouse.c
@@ -660,29 +660,8 @@ static void
|
||||
MouseSerialOptions(InputInfoPtr pInfo)
|
||||
{
|
||||
MouseDevPtr pMse = pInfo->private;
|
||||
Bool clearDTR, clearRTS;
|
||||
|
||||
|
||||
|
||||
pMse->baudRate = xf86SetIntOption(pInfo->options, "BaudRate", 0);
|
||||
if ((clearDTR = xf86SetBoolOption(pInfo->options, "ClearDTR",FALSE)))
|
||||
pMse->mouseFlags |= MF_CLEAR_DTR;
|
||||
|
||||
|
||||
if ((clearRTS = xf86SetBoolOption(pInfo->options, "ClearRTS",FALSE)))
|
||||
pMse->mouseFlags |= MF_CLEAR_RTS;
|
||||
|
||||
if (clearDTR || clearRTS) {
|
||||
xf86Msg(X_CONFIG, "%s: ", pInfo->name);
|
||||
if (clearDTR) {
|
||||
xf86ErrorF("ClearDTR");
|
||||
if (clearRTS)
|
||||
xf86ErrorF(", ");
|
||||
}
|
||||
if (clearRTS) {
|
||||
xf86ErrorF("ClearRTS");
|
||||
}
|
||||
xf86ErrorF("\n");
|
||||
}
|
||||
}
|
||||
|
||||
static MouseProtocolID
|
||||
|
||||
@@ -211,8 +211,6 @@ typedef struct _MouseDevRec {
|
||||
Bool flipXY;
|
||||
int invX;
|
||||
int invY;
|
||||
int mouseFlags; /* Flags to Clear after opening
|
||||
* mouse dev */
|
||||
int resolution;
|
||||
int negativeZ; /* button mask */
|
||||
int positiveZ; /* button mask */
|
||||
|
||||
Reference in New Issue
Block a user