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:
http://www.uj.ac.za/UJ_email_legal_disclaimer.htm
--- 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>
#endif
+#ifdef __NetBSD__
+#include <time.h>
+#include <dev/wscons/wsconsio.h>
+#endif
+
#include <X11/X.h>
#include "xf86.h"
#include "xf86Priv.h"
@@ -141,6 +146,14 @@
if (!isatty (fd))
{
#if 1
+
+#ifdef WSCONS_SUPPORT
+#ifdef WSMOUSEIO_SETVERSION
+ int version = WSMOUSE_EVENT_VERSION;
+ ioctl(fd, WSMOUSEIO_SETVERSION, &version);
+#endif
+#endif
+
/* Allow non-tty devices to be opened. */
xfree(dev);
return (fd);
Home |
Main Index |
Thread Index |
Old Index