aboutsummaryrefslogtreecommitdiffstats
path: root/x11/XFree86-4-libraries/files/patch-k
blob: f620317a3a6619b35f1d626e6431dab86f0106b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
*** programs/Xserver/hw/xfree86/input/mouse/mouse.c.orig	Sat Jul  1 01:39:02 2000
--- programs/Xserver/hw/xfree86/input/mouse/mouse.c	Fri Sep 22 11:30:18 2000
***************
*** 584,591 ****
    {  0xc0, 0x00, 0x00, 0x00,  6,   0x00, 0xff, MPF_NONE },  /* NetScroll */
  							    /* Bus Mouse */
    {  0xf8, 0x80, 0x00, 0x00,  5,   0x00, 0xff, MPF_NONE },  /* BusMouse */
! 							    /* Auto */
!   {  0xf8, 0x80, 0x00, 0x00,  5,   0x00, 0xff, MPF_NONE },  /* dummy entry */
  };
  
  /*
--- 584,591 ----
    {  0xc0, 0x00, 0x00, 0x00,  6,   0x00, 0xff, MPF_NONE },  /* NetScroll */
  							    /* Bus Mouse */
    {  0xf8, 0x80, 0x00, 0x00,  5,   0x00, 0xff, MPF_NONE },  /* BusMouse */
!   {  0xf8, 0x80, 0x00, 0x00,  5,   0x00, 0xff, MPF_NONE },  /* Auto */
!   {  0xf8, 0x80, 0x00, 0x00,  8,   0x00, 0xff, MPF_NONE },  /* SysMouse */
  };
  
  /*
*** programs/Xserver/hw/xfree86/os-support/bsd/bsd_mouse.c.orig	Sat Feb 12 21:45:41 2000
--- programs/Xserver/hw/xfree86/os-support/bsd/bsd_mouse.c	Fri Sep 22 11:30:18 2000
***************
*** 165,171 ****
--- 165,179 ----
      mode.rate = rate > 0 ? rate : -1;
      mode.resolution = res > 0 ? res : -1;
      mode.accelfactor = -1;
+ #if defined(__FreeBSD__)
+     /*
+      * As the FreeBSD sysmouse driver defaults to protocol level 0 everytime
+      * it is opened we enforce protocol level 1 again at this point.
+      */
+     mode.level = 1;
+ #else
      mode.level = -1;
+ #endif
      ioctl(pInfo->fd, MOUSE_SETMODE, &mode);
  }
  #endif