[Call for testers] Update to xorg-server 1.14

Felix Palmen felix at palmen-it.de
Sat Dec 6 00:07:30 UTC 2014


Am Mittwoch, 3. Dezember 2014, 00:28:03 schrieb Jean-Sébastien Pédron:
> An update to xorg-server is almost ready. We would like people to test
> it and report if there's something wrong with it.

Works fine for me, using the devd backend. Any chance to support a w-axis 
(horizontal scrolling) through moused in the next release? I've got it working 
with the following, on top of the existing patches, based on 
https://wiki.freebsd.org/SynapticsTouchpad#Patch

#v+
--- src/mouse.c.orig    2014-12-06 00:49:30.000000000 +0100
+++ src/mouse.c 2014-12-06 00:51:08.000000000 +0100
@@ -969,7 +969,11 @@
     for (i = 0; i < MSE_MAXBUTTONS; i++)
         pMse->buttonMap[i] = 1 << (i > 2 && i < MSE_MAXBUTTONS-4 ? i+4 : i);
     pMse->hasZ = 1;
-    pMse->hasW = 0;
+    if (device && strncmp(device, "/dev/sysmouse", 13) == 0) {
+        pMse->hasW = 1;
+    } else {
+        pMse->hasW = 0;
+    }

     protocol = MousePickProtocol(pInfo, device, protocol, &protocolID);

@@ -1611,6 +1615,13 @@
                  */
                 dz = ((signed char)(pBuf[5] << 1) +
                       (signed char)(pBuf[6] << 1)) >> 1;
+                if (dz == 2) {
+                    dw = 1;
+                    dz = 0;
+                } else if (dz == -2) {
+                    dw = -1;
+                    dz = 0;
+                }
                 buttons |= (int)(~pBuf[7] & 0x7f) << 3;
             }
             break;
#v-

Sure looks a bit "hacky" ...

BR, Felix

-- 
 Dipl.-Inform. Felix Palmen  <felix at palmen-it.de>   ,.//..........
 {web}  http://palmen-it.de  {jabber} [see email]   ,//palmen-it.de
 {pgp public key}     http://palmen-it.de/pub.txt   //   """""""""""
 {pgp fingerprint} ED9B 62D0 BE39 32F9 2488 5D0C 8177 9D80 5ECF F683
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 299 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20141206/5bb77d55/attachment.sig>


More information about the freebsd-x11 mailing list