[PATCH mouse] bsd: Don't try to use SIGIO for input ABI >= 23

Adam Jackson ajax at redhat.com
Tue Jun 7 18:17:23 UTC 2016


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 src/bsd_mouse.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bsd_mouse.c b/src/bsd_mouse.c
index a2c8ec7..dc628d4 100644
--- a/src/bsd_mouse.c
+++ b/src/bsd_mouse.c
@@ -546,8 +546,10 @@ usbMouseProc(DeviceIntPtr pPointer, int what)
                 pInfo->fd = -1;
             } else {
                 xf86FlushInput(pInfo->fd);
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 23
                 if (!xf86InstallSIGIOHandler (pInfo->fd, usbSigioReadInput,
                                               pInfo))
+#endif
                     AddEnabledDevice(pInfo->fd);
             }
         }
-- 
2.7.4



More information about the xorg-devel mailing list