--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/open-src/driver/xf86-input-mouse/18110537.patch Wed Jan 22 08:45:53 2014 -0800
@@ -0,0 +1,33 @@
+--- a/src/sun_mouse.c Thu Jan 9 15:08:10 2014
++++ b/src/sun_mouse.c Fri Jan 10 10:22:04 2014
+@@ -623,7 +623,7 @@
+ {
+ InputInfoPtr pInfo;
+ MouseDevPtr pMse;
+- VuidMsePtr pVuidMse;
++ VuidMsePtr pVuidMse, m;
+ int ret = Success;
+ int i;
+
+@@ -702,8 +702,20 @@
+ }
+ break;
+
+- case DEVICE_OFF:
+ case DEVICE_CLOSE:
++ m = vuidMouseList;
++
++ if (m == pVuidMse)
++ vuidMouseList = m->next;
++ else {
++ while ((m != NULL) && (m->next != pVuidMse)) {
++ m = m->next;
++ }
++
++ if (m != NULL)
++ m->next = pVuidMse->next;
++ }
++ case DEVICE_OFF:
+ if (pInfo->fd != -1) {
+ if (pVuidMse->strmod) {
+ SYSCALL(i = ioctl(pInfo->fd, I_POP, pVuidMse->strmod));
--- a/open-src/driver/xf86-input-mouse/Makefile Tue Jan 21 17:16:50 2014 -0800
+++ b/open-src/driver/xf86-input-mouse/Makefile Wed Jan 22 08:45:53 2014 -0800
@@ -2,7 +2,7 @@
#
# xf86-input-mouse 1.x Makefile
#
-# Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
@@ -39,7 +39,8 @@
# Patches to apply to source after unpacking, in order
SOURCE_PATCHES = \
6892799.patch,-p1 \
- 15798251.patch,-p1
+ 15798251.patch,-p1 \
+ 18110537.patch,-p1
# Man pages to apply Sun footer to & attributes to list
SUNTOUCHED_MANPAGES=man/*.man