Cross Reference: 18110537.patch
xref
: /
solaris-x11-s11
/
open-src
/
driver
/
xf86-input-mouse
/
18110537.patch
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
1383
N/A
---
a/src/sun_mouse.c
Thu Jan 9 15:08:10 2014
1383
N/A
+++
b/src/sun_mouse.c
Fri Jan 10 10:22:04 2014
1383
N/A
@@ -623,7 +623,7 @@
1383
N/A
{
1383
N/A
InputInfoPtr pInfo;
1383
N/A
MouseDevPtr pMse;
1383
N/A
- VuidMsePtr pVuidMse;
1383
N/A
+ VuidMsePtr pVuidMse, m;
1383
N/A
int ret = Success;
1383
N/A
int i;
1383
N/A
1383
N/A
@@ -702,8 +702,20 @@
1383
N/A
}
1383
N/A
break;
1383
N/A
1383
N/A
- case DEVICE_OFF:
1383
N/A
case DEVICE_CLOSE:
1383
N/A
+ m = vuidMouseList;
1383
N/A
+
1383
N/A
+ if (m == pVuidMse)
1383
N/A
+ vuidMouseList = m->next;
1383
N/A
+ else {
1383
N/A
+ while ((m != NULL) && (m->next != pVuidMse)) {
1383
N/A
+ m = m->next;
1383
N/A
+ }
1383
N/A
+
1383
N/A
+ if (m != NULL)
1383
N/A
+ m->next = pVuidMse->next;
1383
N/A
+ }
1383
N/A
+ case DEVICE_OFF:
1383
N/A
if (pInfo->fd != -1) {
1383
N/A
if (pVuidMse->strmod) {
1383
N/A
SYSCALL(i = ioctl(pInfo->fd, I_POP, pVuidMse->strmod));