tech-x11 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: xsrc/external/mit/xorg-server/dist/hw/xfree86/os-support/bsd

It appears that the mouse device is opened in xf86OpenSerial.
Does it make sense to do the ioctl here?

I am not sure how to check whether fd refers to a wsmouse
before attempting the ioctl, so I just ignored failure.

Kind regards,

Yorick Hardy

This email and all contents are subject to the following disclaimer:
--- external/mit/xorg-server/dist/hw/xfree86/os-support/shared/posix_tty.c.orig 
2009-01-28 10:50:04.000000000 +0200
+++ external/mit/xorg-server/dist/hw/xfree86/os-support/shared/posix_tty.c      
2009-01-28 10:53:53.000000000 +0200
@@ -56,6 +56,11 @@
 #include <xorg-config.h>
+#ifdef __NetBSD__
+#include <time.h>
+#include <dev/wscons/wsconsio.h>
 #include <X11/X.h>
 #include "xf86.h"
 #include "xf86Priv.h"
@@ -141,6 +146,14 @@
        if (!isatty (fd))
 #if 1
+               int version = WSMOUSE_EVENT_VERSION;
+               ioctl(fd, WSMOUSEIO_SETVERSION, &version);
                /* Allow non-tty devices to be opened. */
                return (fd);

Home | Main Index | Thread Index | Old Index