summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/kdrive/linux/ts.c4
-rw-r--r--hw/kdrive/src/kinput.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/hw/kdrive/linux/ts.c b/hw/kdrive/linux/ts.c
index 07a676982..c6fad1bd1 100644
--- a/hw/kdrive/linux/ts.c
+++ b/hw/kdrive/linux/ts.c
@@ -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);
}
}
}
diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c
index 21ac69ca6..f6eef0dca 100644
--- a/hw/kdrive/src/kinput.c
+++ b/hw/kdrive/src/kinput.c
@@ -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: