3 Changes from NetBSD xsrc/external/mit/xf86-input-keyboard/dist/\
6 ----------------------------
8 date: 2009/02/07 17:33:28; author: christos; state: Exp; lines: +7 -0
9 Set the version for the keyboard too. From Patrick Welche
10 ----------------------------
12 --- src/bsd_kbd.c.orig 2008-12-04 00:01:46.000000000 +0200
14 @@ -454,6 +454,13 @@ OpenKeyboard(InputInfoPtr pInfo)
16 if( prot == PROT_WSCONS) {
17 pKbd->consType = WSCONS;
18 +#ifdef WSKBDIO_SETVERSION
19 + int version = WSKBDIO_EVENT_VERSION;
20 + if (ioctl(pInfo->fd, WSKBDIO_SETVERSION, &version) == -1) {
21 + xf86Msg(X_WARNING, "%s: cannot set version\n", pInfo->name);
25 /* Find out keyboard type */
26 if (ioctl(pInfo->fd, WSKBDIO_GTYPE, &(pKbd->wsKbdType)) == -1) {
27 xf86Msg(X_ERROR, "%s: cannot get keyboard type", pInfo->name);