Commit Graph

284 Commits

Author SHA1 Message Date
Alan Coopersmith
ecd043f1de xf86-input-mouse 1.9.4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-input-mouse-1.9.4
2022-11-01 19:38:00 -07:00
Alan Coopersmith
426c8e099f sun_mouse.c: #include "config.h"
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-01 19:38:00 -07:00
Alan Coopersmith
29456a2ad3 configure: check for timingsafe_memcmp
Not needed by mouse driver, but quiets warnings from xorg server headers:

In file included from /usr/include/xorg/misc.h:117:0,
                 from /usr/include/xorg/xf86str.h:37,
                 from /usr/include/xorg/xf86.h:44,
                 from mouse.c:57:
/usr/include/xorg/os.h:595:1: warning: redundant redeclaration of ‘timingsafe_memcmp’ [-Wredundant-decls]
 timingsafe_memcmp(const void *b1, const void *b2, size_t len);
 ^~~~~~~~~~~~~~~~~
In file included from mouse.c:52:0:
/usr/include/string.h:235:12: note: previous declaration of ‘timingsafe_memcmp’ was here
 extern int timingsafe_memcmp(const void *s1, const void *s2, size_t n);
            ^~~~~~~~~~~~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17 10:09:00 -07:00
Alan Coopersmith
cbb97f4249 autoGood: quiet -Wimplicit-fallthrough warning
mouse.c: In function ‘autoGood’:
mouse.c:3724:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
         if (mPriv->goodCount < PROBE_UNCERTAINTY/2)
            ^
mouse.c:3726:5: note: here
     default:
     ^~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17 10:08:59 -07:00
Alan Coopersmith
b888251a03 InputDriverRec: Fix -Wmissing-field-initializers warning
mouse.c:185:1: warning: missing initializer for field ‘default_options’ of ‘InputDriverRec {aka struct _InputDriverRec}’ [-Wmissing-field-initializers]
 };
 ^
In file included from mouse.c:63:0:
/usr/include/xorg/xf86Xinput.h:83:18: note: ‘default_options’ declared here
     const char **default_options;
                  ^~~~~~~~~~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17 10:08:59 -07:00
Alan Coopersmith
03fb2ae36b SetupMouse: fix -Wsign-compare warning
mouse.c: In function ‘SetupMouse’:
mouse.c:2620:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (i = 0; i < sizeof(pMse->protoPara); i++)
                           ^

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-16 12:17:11 -07:00
Alan Coopersmith
a8ff2170cb checkForErraticMovements: Fix -Wempty-body warnings
mouse.c: In function ‘checkForErraticMovements’:
mouse.c:3759:52: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]
                 AP_DBG(("accDx=%i\n",mPriv->accDx));
                                                    ^
mouse.c:3772:52: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]
                 AP_DBG(("accDy=%i\n",mPriv->accDy));
                                                    ^

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-16 12:17:02 -07:00
Alan Coopersmith
72323bf07c sun_mouse: Fix -Wnull-dereference warning
sun_mouse.c: In function ‘vuidReadInput’:
sun_mouse.c:291:10: warning: potential null pointer dereference [-Wnull-dereference]
     pBuf = pVuidMse->buffer;
     ~~~~~^~~~~~~~~~~~~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-16 11:53:20 -07:00
Alan Coopersmith
f62f35747e sun_mouse: Fix -Wsign-compare warnings
sun_mouse.c: In function ‘vuidReadInput’:
sun_mouse.c:299:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         } else if (n == -1) {
                      ^~
sun_mouse.c: In function ‘vuidMouseProc’:
sun_mouse.c:507:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (vuidMouseGeneration != serverGeneration) {
                                 ^~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-16 11:48:22 -07:00
Alan Coopersmith
2d963a9f61 gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-16 11:48:22 -07:00
Alan Coopersmith
3bb98d758b gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-17 16:07:04 -08:00
Alan Coopersmith
84bca281c4 Fix spelling/wording issues
Found by using:
    codespell --builtin clear,rare,usage,informal,code,names

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-16 12:36:16 -08:00
Alan Coopersmith
9255be3c68 Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-16 12:30:22 -08:00
Alan Coopersmith
03092c520b Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-25 12:48:28 -08:00
Matt Turner
cfde5e9f34 xf86-input-mouse 1.9.3
Signed-off-by: Matt Turner <mattst88@gmail.com>
xf86-input-mouse-1.9.3
2018-06-18 21:35:56 -07:00
Adam Jackson
e6aa78128e bsd: Don't try to use SIGIO for input ABI >= 23
Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-02-21 14:50:55 -05:00
Adam Jackson
3c8f243b75 Adapt to removal of xf86GetOS
Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-02-16 09:21:56 -05:00
Mihail Konev
9d0d12cd43 autogen: add default patch prefix
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26 14:00:21 +10:00
Emil Velikov
2ad101d505 autogen.sh: use quoted string variables
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
fall-outs, when they contain space.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26 11:13:25 +10:00
Peter Hutterer
8976960cac autogen.sh: use exec instead of waiting for configure to finish
Syncs the invocation of configure with the one from the server.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2017-01-26 11:13:25 +10:00
Peter Hutterer
9d6c38eae4 mouse 1.9.2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-mouse-1.9.2
2016-11-17 14:35:47 +10:00
Keith Packard
2dda9b90b9 Support ABI_XINPUT_VERSION 24 (remove LastSelectMask from block/wakeup)
The block and wakeup handler API is changing so that the FD_SET type
isn't visible outside the OS layer anymore. The mouse driver didn't
need that argument anyways, so the change is just to adjust the APIs
to avoid compiler warnings.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-09-06 13:53:31 +10:00
Keith Packard
80952e5a5f Support ABI_XINPUT_VERSION 23 (use input_lock/input_unlock)
This makes using input_lock/input_unlock conditional on the ABI
version so that we don't get compiler warnings when compiling with the
newer server bits.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-06-01 10:24:59 +10:00
Thomas Klausner
c22d3073dc Add some standard defines to pkg-config file.
Not strictly needed in the xorg build, but helps the NetBSD reachover
build, and follows implicit conventions about pkg-config files more
closely.

See also http://gnats.netbsd.org/48991

Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-07-27 00:27:40 +02:00
Alan Coopersmith
85ee769d76 README: Drop ancient, no longer supported versions of Solaris
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2015-03-06 17:05:23 -08:00
Alan Coopersmith
9d404d41b6 README: Add "or xf86-input-libinput" to -evdev note for Linux
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2015-03-06 17:05:07 -08:00
Alan Coopersmith
6886084b19 xf86-input-mouse 1.9.1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-input-mouse-1.9.1
2014-08-11 23:36:23 -07:00
Alan Coopersmith
252b15a2ae Update some outdated language in a comment on obsolete hardware
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-07-11 19:47:20 -07:00
Michael Thayer
e83991474e Make absolute input reporting in Solaris aware of resolution changes
Currently on Solaris absolute input reporting only takes resolution changes
into account when the video driver is using the pre-RandR 1.2 APIs, and
there it uses the physical resolution, not the virtual.  This patch fixes
those two things.

Signed-off-by: Michael Thayer <michael.thayer@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-20 21:11:22 -07:00
Michael Thayer
7a1fb986cc Do not drop the result of protocol detection
In MousePickProtocol() with protocol PROT_AUTO we probe for the protocol to
use but drop the result in most cases.  This was causing DEVICE_INIT and
DEVICE_ON to fail to be called with the VUID protocol.  Git history suggests
that this code was originally meant to cover both PS/2 auto-detection and OS-
specific detection, but that only the first case was implemented at the time.
Now that only the second is needed dropping the result to keep the protocol
as PROT_AUTO is presumably no longer useful and seems to actively breaking
things.

Signed-off-by: Michael Thayer <michael.thayer@oracle.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-04-18 22:56:31 -07:00
Thomas Klausner
4e79eb64e5 Add support for absolute positioning (tablets).
From Pierre Pronchery <khorben@NetBSD.org>
and review comments by Daniel Stone <daniel@fooishbar.org>.

Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2014-03-30 22:23:43 +02:00
Thomas Klausner
b77a728904 For wsmouse, keep 3-button emulation status.
With a multiplexed device like wsmouse it does not make sense to
kill emulate3buttons on the first button-3-pressed event. The
button-3 pressed may belong to a mouse long gone and leave the
internal (two button only) mousepad useless.

Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
From Martin Husemann <martin@NetBSD.org>
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2014-03-30 18:36:29 +02:00
Thomas Klausner
ae1a3d6072 Make wsmouse (re-)init the version.
This makes sure that the xserver and the mouse speak the same
protocol version.

Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com>
From Matthew R. Green <mrg@NetBSD.org>
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2014-03-30 18:36:29 +02:00
Thomas Klausner
e2cb94b0f3 Enable MSE_MISC on NetBSD as well.
Otherwise we can't find WSMouse.

Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
From Matthew R. Green <mrg@NetBSD.org>
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2014-03-30 18:36:29 +02:00
Patrik Jakobsson
ea504b225f Add AC_SYSTEM_EXTENSIONS to expose asprintf with GNU libc
As required by the following commit:
commit 8c75f6e1c1
Use asprintf (or Xprintf on old servers) instead of strdup+sprintf

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-01-05 10:26:32 -08:00
Alan Coopersmith
8c75f6e1c1 Use asprintf (or Xprintf on old servers) instead of strdup+sprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-11-03 10:48:07 -08:00
Alan Coopersmith
d5de178fe9 Wrap some overly long lines
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-10-19 18:40:10 -07:00
Peter Hutterer
35cae8f435 mouse 1.9.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-mouse-1.9.0
2013-03-27 10:59:05 +10:00
Colin Walters
585f4030d7 autogen.sh: Implement GNOME Build API
http://people.gnome.org/~walters/docs/build-api.txt

Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-16 13:16:23 -05:00
Adam Jackson
8e74b1db7b configure: Drop AM_MAINTAINER_MODE
Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-16 13:11:11 -05:00
Peter Hutterer
3b199a175d Use signal-safe logging if available
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@ubuntu.com>
2012-10-08 11:40:07 +10:00
Peter Hutterer
cb1f60930b Fix compilation error with EXTMOUSEDEBUG on
pInfo->atom was removed in xorg-server-1.9.0-26-g9802cca

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-08-17 14:38:37 +10:00
Peter Hutterer
29dbd85c46 xf86-input-mouse 1.8.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-mouse-1.8.1
2012-07-31 09:39:47 +10:00
Alan Coopersmith
5a5f41659d Fix compiler warning in sun_mouse.c (Solaris-only)
sun_mouse.c: In function 'vuidRemoveMouse':
sun_mouse.c:150:42: warning: declaration of 'time' shadows a global declaration

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-31 09:37:58 +10:00
Peter Hutterer
5748979008 Rename xf86-mouse.pc to xorg-mouse.pc
Other input drivers already shipping pkgconfig files use this naming scheme
and since the 1.8 release didn't install the file anyway, renaming is still
acceptable at this point.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-31 09:06:41 +10:00
Peter Hutterer
a5630a5668 Install xf86-mouse.pc file
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-31 09:06:41 +10:00
Peter Hutterer
7c1e63ef00 Fix compiler warnings
pnp.c: In function 'probePs2ProtocolPnP':
pnp.c:711:31: warning: declaration of 'seq' shadows a previous local
[-Wshadow]
pnp.c:705:23: warning: shadowed declaration is here [-Wshadow]

mouse.c: In function 'MouseCommonOptions':
mouse.c:330:13: warning: declaration of 'i' shadows a previous local
[-Wshadow]
mouse.c:279:9: warning: shadowed declaration is here [-Wshadow]

mouse.c: In function 'autoProbeMouse':
mouse.c:3602:29: warning: declaration of 'proto' shadows a global
declaration [-Wshadow]
mouse.c:2482:22: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-30 13:36:44 -07:00
Alan Coopersmith
3c0c022672 xf86-input-mouse 1.8.0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-input-mouse-1.8.0
2012-07-26 23:10:47 -07:00
Alan Coopersmith
66792aff95 Fix vuidMouseAdjustFrame to build with Xorg 1.13 ABI
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-25 22:12:02 -07:00
Alan Coopersmith
a2494e6fe3 Raise bar for xorg-server to 1.7 for XINPUT ABI 7
Not all of the button label settings were wrapped in ABI #ifdefs,
so just drop all #ifdefs for GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 7

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-07-24 18:53:33 -07:00