Module Name: xsrc
Committed By: tsutsui
Date: Fri Oct 8 18:53:12 UTC 2010
Modified Files:
xsrc/xfree/xc/programs/Xserver/hw/netbsd/dreamcast: dreamcastKbd.c
Log Message:
Also handle WSKBDIO_SETVERSION. Now Xdreamcast works again.
XXX: not sure if other MD legacy servers need this
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
xsrc/xfree/xc/programs/Xserver/hw/netbsd/dreamcast/dreamcastKbd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/xfree/xc/programs/Xserver/hw/netbsd/dreamcast/dreamcastKbd.c
diff -u xsrc/xfree/xc/programs/Xserver/hw/netbsd/dreamcast/dreamcastKbd.c:1.3 xsrc/xfree/xc/programs/Xserver/hw/netbsd/dreamcast/dreamcastKbd.c:1.4
--- xsrc/xfree/xc/programs/Xserver/hw/netbsd/dreamcast/dreamcastKbd.c:1.3 Wed Jul 7 18:46:52 2004
+++ xsrc/xfree/xc/programs/Xserver/hw/netbsd/dreamcast/dreamcastKbd.c Fri Oct 8 18:53:11 2010
@@ -158,6 +158,15 @@
case DEVICE_ON:
pPriv = (dreamcastKbdPrivPtr)pKeyboard->devicePrivate;
dreamcastCleanupFd(pPriv->fd);
+#ifdef WSKBDIO_SETVERSION
+ {
+ int version = WSKBDIO_EVENT_VERSION;
+ if (ioctl(pPriv->fd, WSKBDIO_SETVERSION, &version) == -1) {
+ Error ("dreamcastKbdProc ioctl WSKBDIO_SETVERSION");
+ return !Success;
+ }
+ }
+#endif
AddEnabledDevice(pPriv->fd);
pKeyboard->on = TRUE;
break;