Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Dec 2014 01:07:04 +0100
From:      Felix Palmen <felix@palmen-it.de>
To:        freebsd-x11@freebsd.org
Subject:   Re: [Call for testers] Update to xorg-server 1.14
Message-ID:  <1584698.FRGZISf7JL@nexus>
In-Reply-To: <547E4B03.2090508@FreeBSD.org>
References:  <547E4B03.2090508@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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@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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iJwEAAECAAYFAlSCSLwACgkQBKr7eDEb1w2CagP/QDNut0QVhSjlL9aLk78iTj4l
6+OFu0Ogmq08xUBk9frddvMqf9/EAN1cbautnrjc7OHCoT/4Ib8s12Mbd+f9//FO
fK4wEH2dHLQ1/CLUgzfU+XDnVHOlp/3renImYSzedPOvcAUmFRIeQa4BhRuwBkYi
SKnh/4aE5MCpUv/FXyg=
=/tl2
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1584698.FRGZISf7JL>