Commit 2698ee9f authored by Keith Packard's avatar Keith Packard
Browse files

Prefer touchscreen to mouse

parent fe477855
/*
* $XFree86: xc/programs/Xserver/hw/kdrive/linux/ts.c,v 1.7 2002/08/02 16:11:35 keithp Exp $
* $XFree86: xc/programs/Xserver/hw/kdrive/linux/ts.c,v 1.8 2002/08/02 16:30:50 keithp Exp $
*
* Derived from ps2.c by Jim Gettys
*
......@@ -183,6 +183,8 @@ TsInit (void)
if (KdRegisterFd (TsInputType, fd, TsRead, (void *) mi))
n++;
}
else
close (fd);
}
}
}
......
......@@ -309,12 +309,12 @@ KdMouseProc(DeviceIntPtr pDevice, int onoff)
case DEVICE_ON:
pDev->on = TRUE;
pKdPointer = pDevice;
if (kdMouseFuncs)
(*kdMouseFuncs->Init) ();
#ifdef TOUCHSCREEN
if (kdTsFuncs)
(*kdTsFuncs->Init) ();
#endif
if (kdMouseFuncs)
(*kdMouseFuncs->Init) ();
break;
case DEVICE_OFF:
case DEVICE_CLOSE:
......
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