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

Keith Packard keithp at keithp.com
Tue Jun 7 20:09:30 UTC 2016


Adam Jackson <ajax at redhat.com> writes:

> 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);

I looked at this code and walked away -- why isn't this just using
xf86AddEnabledDevice?

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20160607/4a8ddcb7/attachment.sig>


More information about the xorg-devel mailing list