summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* xf86-input-mouse 1.9.5HEADxf86-input-mouse-1.9.5masterAlan Coopersmith2023-05-041-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Remove "All rights reserved" from Oracle copyright noticesAlan Coopersmith2023-02-252-2/+2
| | | | | | Oracle no longer includes this term in our copyright & license notices. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* sun_mouse: remove entry from vuidMouseList in DEVICE_CLOSEAlan Coopersmith2022-11-091-1/+14
| | | | | | | | | | | | | | Originally written by fei.feng@oracle.com to fix Oracle Bug 17429216: "global vuidMouseList should not keep info for removed mouse device" "During the testing for bug#17251473, I often see the mouse hang in X. By debugging, I get that there seems something wrong in mouse_drv.so - when a mouse is disconnected, the global vuidMouseList does not cleanup the mouse's recorded info. So if a newly inserted mouse allocates a input info pInfo which happens to have the same memory address as previous pInfo, the driver would go wrong." Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* sun_mouse: Add RelToAbs option to convert relative events to absoluteAlan Coopersmith2022-11-091-2/+167
| | | | | | | | | | | | Enabled automatically for the Sun ILOM device, to avoid acceleration that causes the Remote KVMS mouse cursor to become unaligned with the X mouse cursor. Code originally written by david.m.marx@oracle.com in 2013 to fix Oracle bug 15798251 - SUNBT7177072 "actual mouse pointer is off from the cursor on remote window" Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* sun_mouse: include more required system headersAlan Coopersmith2022-11-022-4/+4
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Rearrange includes to fix build on OmniOS. Include unistd.h for ioctl(2).Thomas Klausner2022-11-021-3/+4
| | | | Signed-off-by: Thomas Klausner <wiz@gatalith.at>
* xf86-input-mouse 1.9.4xf86-input-mouse-1.9.4Alan Coopersmith2022-11-011-2/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* sun_mouse.c: #include "config.h"Alan Coopersmith2022-11-011-0/+4
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* configure: check for timingsafe_memcmpAlan Coopersmith2022-10-171-1/+1
| | | | | | | | | | | | | | | | | | 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>
* autoGood: quiet -Wimplicit-fallthrough warningAlan Coopersmith2022-10-171-0/+1
| | | | | | | | | | | | 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>
* InputDriverRec: Fix -Wmissing-field-initializers warningAlan Coopersmith2022-10-171-6/+12
| | | | | | | | | | | | 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>
* SetupMouse: fix -Wsign-compare warningAlan Coopersmith2022-10-161-2/+1
| | | | | | | | | 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>
* checkForErraticMovements: Fix -Wempty-body warningsAlan Coopersmith2022-10-161-2/+4
| | | | | | | | | | | | 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>
* sun_mouse: Fix -Wnull-dereference warningAlan Coopersmith2022-10-161-2/+5
| | | | | | | | | 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>
* sun_mouse: Fix -Wsign-compare warningsAlan Coopersmith2022-10-161-3/+3
| | | | | | | | | | | | | 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>
* gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith2022-10-161-2/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* gitlab CI: add a basic build testAlan Coopersmith2022-01-171-0/+127
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Fix spelling/wording issuesAlan Coopersmith2022-01-164-15/+15
| | | | | | | Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Build xz tarballs instead of bzip2Alan Coopersmith2022-01-161-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Update configure.ac bug URL for gitlab migrationAlan Coopersmith2018-11-251-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* xf86-input-mouse 1.9.3xf86-input-mouse-1.9.3Matt Turner2018-06-181-1/+1
| | | | Signed-off-by: Matt Turner <mattst88@gmail.com>
* bsd: Don't try to use SIGIO for input ABI >= 23Adam Jackson2018-02-211-0/+2
| | | | Signed-off-by: Adam Jackson <ajax@redhat.com>
* Adapt to removal of xf86GetOSAdam Jackson2017-02-161-6/+5
| | | | Signed-off-by: Adam Jackson <ajax@redhat.com>
* autogen: add default patch prefixMihail Konev2017-01-261-0/+3
| | | | Signed-off-by: Mihail Konev <k.mvc@ya.ru>
* autogen.sh: use quoted string variablesEmil Velikov2017-01-261-4/+4
| | | | | | | | | 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>
* autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer2017-01-261-1/+1
| | | | | | | 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>
* mouse 1.9.2xf86-input-mouse-1.9.2Peter Hutterer2016-11-171-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Support ABI_XINPUT_VERSION 24 (remove LastSelectMask from block/wakeup)Keith Packard2016-09-061-9/+12
| | | | | | | | | | 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>
* Support ABI_XINPUT_VERSION 23 (use input_lock/input_unlock)Keith Packard2016-06-011-0/+24
| | | | | | | | | 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>
* Add some standard defines to pkg-config file.Thomas Klausner2015-07-271-0/+4
| | | | | | | | | | | 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>
* README: Drop ancient, no longer supported versions of SolarisAlan Coopersmith2015-03-061-2/+2
| | | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
* README: Add "or xf86-input-libinput" to -evdev note for LinuxAlan Coopersmith2015-03-061-1/+1
| | | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
* xf86-input-mouse 1.9.1xf86-input-mouse-1.9.1Alan Coopersmith2014-08-111-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Update some outdated language in a comment on obsolete hardwareAlan Coopersmith2014-07-111-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Make absolute input reporting in Solaris aware of resolution changesMichael Thayer2014-05-201-9/+33
| | | | | | | | | | 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>
* Do not drop the result of protocol detectionMichael Thayer2014-04-181-5/+2
| | | | | | | | | | | | | | | 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>
* Add support for absolute positioning (tablets).Thomas Klausner2014-03-301-1/+21
| | | | | | | | 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>
* For wsmouse, keep 3-button emulation status.Thomas Klausner2014-03-301-0/+11
| | | | | | | | | | | 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>
* Make wsmouse (re-)init the version.Thomas Klausner2014-03-301-0/+11
| | | | | | | | | 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>
* Enable MSE_MISC on NetBSD as well.Thomas Klausner2014-03-301-3/+1
| | | | | | | | 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>
* Add AC_SYSTEM_EXTENSIONS to expose asprintf with GNU libcPatrik Jakobsson2014-01-051-0/+1
| | | | | | | | | | As required by the following commit: commit 8c75f6e1c117f3d05f0bc7bed34f0e7e933f3b9a 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>
* Use asprintf (or Xprintf on old servers) instead of strdup+sprintfAlan Coopersmith2013-11-032-17/+43
| | | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
* Wrap some overly long linesAlan Coopersmith2013-10-191-12/+22
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* mouse 1.9.0xf86-input-mouse-1.9.0Peter Hutterer2013-03-271-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* autogen.sh: Implement GNOME Build APIbaserock/morphColin Walters2013-01-161-1/+3
| | | | | | http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Adam Jackson <ajax@redhat.com>
* configure: Drop AM_MAINTAINER_MODEAdam Jackson2013-01-161-1/+0
| | | | Signed-off-by: Adam Jackson <ajax@redhat.com>
* Use signal-safe logging if availablePeter Hutterer2012-10-085-41/+49
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@ubuntu.com>
* Fix compilation error with EXTMOUSEDEBUG onPeter Hutterer2012-08-171-2/+1
| | | | | | | 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>
* xf86-input-mouse 1.8.1xf86-input-mouse-1.8.1Peter Hutterer2012-07-311-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Fix compiler warning in sun_mouse.c (Solaris-only)Alan Coopersmith2012-07-311-1/+1
| | | | | | | | | 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>