Prefer touchscreen to mouse

This commit is contained in:
Keith Packard 2002-08-15 18:07:57 +00:00
parent fe477855d7
commit 2698ee9f29
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* $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);
}
}
}

View File

@ -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: