1383N/A--- a/src/sun_mouse.c Thu Jan 9 15:08:10 2014
1383N/A+++ b/src/sun_mouse.c Fri Jan 10 10:22:04 2014
1383N/A@@ -623,7 +623,7 @@
1383N/A {
1383N/A InputInfoPtr pInfo;
1383N/A MouseDevPtr pMse;
1383N/A- VuidMsePtr pVuidMse;
1383N/A+ VuidMsePtr pVuidMse, m;
1383N/A int ret = Success;
1383N/A int i;
1383N/A
1383N/A@@ -702,8 +702,20 @@
1383N/A }
1383N/A break;
1383N/A
1383N/A- case DEVICE_OFF:
1383N/A case DEVICE_CLOSE:
1383N/A+ m = vuidMouseList;
1383N/A+
1383N/A+ if (m == pVuidMse)
1383N/A+ vuidMouseList = m->next;
1383N/A+ else {
1383N/A+ while ((m != NULL) && (m->next != pVuidMse)) {
1383N/A+ m = m->next;
1383N/A+ }
1383N/A+
1383N/A+ if (m != NULL)
1383N/A+ m->next = pVuidMse->next;
1383N/A+ }
1383N/A+ case DEVICE_OFF:
1383N/A if (pInfo->fd != -1) {
1383N/A if (pVuidMse->strmod) {
1383N/A SYSCALL(i = ioctl(pInfo->fd, I_POP, pVuidMse->strmod));