Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / xf86-input-keyboard / patches / patch-ac
blob857b36b98dfd8cf7526298e61663151a20d4d0bd
1 $NetBSD$
3 Changes from NetBSD xsrc/external/mit/xf86-input-keyboard/dist/\
4 src/bsd_kbd.c
6 ----------------------------
7 revision 1.4
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
13 +++ src/bsd_kbd.c
14 @@ -454,6 +454,13 @@ OpenKeyboard(InputInfoPtr pInfo)
15  #ifdef WSCONS_SUPPORT
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);
22 +           return FALSE;
23 +       }
24 +#endif 
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);