summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-10-26Adjust to new Input ABI 12.HEADmasterPeter Hutterer5-27/+73
New PreInit prototype and a couple of other minor changes. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26ABI 12 requires per-valuator modes.Peter Hutterer1-2/+10
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Use pInfo->options instead of conf-idev.Peter Hutterer4-20/+18
Because it doesn't really matter anyway, I think. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Remove write-only field mouseFlags.Peter Hutterer2-24/+1
The flags were used to store ClearDTS and ClearRTR, but those options only resulted in log messages. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Rename xf86OSMouseInit to OSMouseInit.Peter Hutterer6-9/+9
This isn't a DDX function anymore. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Remove random History comment.Peter Hutterer1-11/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Rename xf86OSmouse.h to mouse.hPeter Hutterer9-281/+268
The driver-internal mouse.h header was only an include command for xf86OSmouse.h anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Remove a bunch of unused fields from the MouseRec.Peter Hutterer1-6/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Move a statement down to have all allocations close together.Peter Hutterer1-6/+7
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Remove convoluted do { } while loop.Peter Hutterer1-20/+15
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Move protocol ID detection into a separate function.Peter Hutterer1-45/+57
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Use single exit path for PreInit.Peter Hutterer1-8/+10
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26De-duplicate Option "Device" handling.Peter Hutterer1-28/+26
Move the warning messages and the OS-specific autoprobing calls into a new function. This will change the order log messages appear in but functional changes should be identical. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Remove unused branch from if 1 condition.Peter Hutterer1-6/+0
This has been in since 2003 or earlier, let's pretend it works. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Remove a bunch of unnecessary log prints.Peter Hutterer1-25/+1
xf86SetFooOption will print to the log anyway, no need to print twice. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Remove if 0'd out model.Peter Hutterer1-13/+0
If 0 since at least 2003 is enough to pretend we don't need this block. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Remove includes for protocol headers.Peter Hutterer1-2/+0
The driver shouldn't need those. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Remove unused define NEED_X86_TYPES.Peter Hutterer1-4/+0
Not needed for 1.6 and later. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-26Assume ABI_XINPUT_VERSION 4 or higher.Peter Hutterer2-59/+0
We require server 1.6 in configure.ac to build, so let's assume that's the minimal ABI version we support. Purge the rest. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-25Remove refcnt field from InputDriverRec.Peter Hutterer1-1/+0
Wasn't used in the server and is now removed. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-25Don't try to call conversion_proc anymore.Peter Hutterer1-0/+6
This hasn't been called since at least server 1.5 or so (ABI 2), possibly longer. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-25Replace LocalDevicePtr with InputInfoPtr.Peter Hutterer1-1/+1
No functional changes. The typedef has been removed from the server but was an alias for InputInfoPtr since the dawn of, well, at least git. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-25XI86_POINTER_CAPABLE is gone from the server.Peter Hutterer1-1/+1
And was a write-only flag before that anyway, no ifdef needed. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-25Remove out-of-date comment.Peter Hutterer1-4/+0
/* * XXX This should be done by a function in the core server since the * MouseDevRec is defined in the os-support layer. */ no, it shouldn't and it isn't, in exactly that order. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-25Remove unused declaration of MouseUnInit.Peter Hutterer1-4/+1
To not have an UnInit function one needs to explicitly not define an UnInit function that is then not used, so that definitely no UnInit is performed with the function that is not defined. Philosophically speaking, this may be true. Meanwhile, over here in reality, well... meh. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-10-25Replace libc wrappers to xcalloc and friends with libc calls.Peter Hutterer5-47/+47
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-09-29Merge branch 'master' of ↵Samuel Thibault7-50/+38
git+ssh://git.freedesktop.org/git/xorg/driver/xf86-input-mouse
2010-09-08xf86-input-mouse 1.6.0Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-09-08Bring README a little closer to the current state of realityAlan Coopersmith1-27/+26
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-09-05Fix build warningSamuel Thibault1-3/+3
Add extra parentheses to avoid ambiguity. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2010-09-05Fix mouse data bufferingSamuel Thibault1-3/+6
Check remaining buffer size *before* reading a character from the device. Also keep extra characters in the static buffer until next invocation. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2010-08-14MouseCtrl doesn't need to save values we never useAlan Coopersmith2-18/+3
Makes it into a no-op, like evdev's PtrCtrl function, now that mouse acceleration is completely handled in dix. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Patrick E. Kane <pekane52 at gmail.com> Reviewed-by: Simon Thum <simon.thum@gmx.de>
2010-08-11Sun's copyrights belong to Oracle nowAlan Coopersmith3-4/+5
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-08-11Check for NULL currentMode in vuidMouseSendScreenSize()Henry Zhao1-0/+3
Fixes Sun bug 6920647: Core dump in resume when monitor changed in suspend http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6920647 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-28Do not return the address of a local bufferSamuel Thibault1-1/+1
Make the const buffer returned by FindDevice a static const buffer, to avoid letting be on the stack. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2010-07-19xf86-input-mouse: Update sun_mouse devPrivates code #29049Patrick E. Kane1-0/+12
Update the sun_mouse devPrivates code to conform to the new API (introducted by commit faeebead7bfcc78535757ca7acc1faf7554c03b7) that requires the PrivateKey to be registered. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=29049 Signed-off-by: Patrick E. Kane <pekane52@gmail.com> Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Jamey Sharp <jamey@minilop.net>
2010-07-09Purge macro NEED_EVENTSFernando Carrijo3-3/+0
Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br> Acked-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-05-27config: use AC_PROG_INSTALL now supplied by XORG_DEFAULT_OPTIONSGaetan Nadon1-3/+0
The existing statement can now be removed from the configuration file. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-27config: upgrade to util-macros 1.8 for additional man page supportGaetan Nadon2-19/+2
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS The value of MAN_SUBST is the same for all X.Org packages. Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS The existing statement can now be removed from the configuration file. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16config: let AC_PROG_SED find the best value for $SEDGaetan Nadon1-2/+0
Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16README: keep the text version of README, discard the sgml versionGaetan Nadon3-1130/+0
The linuxdoc doc tool is deprecated. README files are exclusively text files. The file had not been updated for 5 years. Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16config: fix warnings, m4 quoting and layoutGaetan Nadon1-22/+27
Fix some m4 quoting Fix some autoconf warnings Regroup statements per section Add comments Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16config: Upgrade X.Org macros to 1.4 for INSTALL file copyingGaetan Nadon1-4/+4
Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16config: remove AC_PROG_CC as it overrides AC_PROG_C_C99Gaetan Nadon1-1/+0
XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls AC_PROG_C_C99. This sets gcc with -std=gnu99. If AC_PROG_CC macro is called afterwards, it resets CC to gcc. Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16config: remove unrequired AC_HEADER_STDCGaetan Nadon1-3/+0
Autoconf says: "This macro is obsolescent, as current systems have conforming header files. New programs need not use this macro". Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSGaetan Nadon1-4/+3
Regroup AC statements at the top. Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16config: update AC_PREREQ statement to 2.60Gaetan Nadon1-1/+1
Unrelated to the previous patches, the new value simply reflects the reality that the minimum level for autoconf to configure all x.org modules is 2.60 dated June 2006. ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16config: optional extension check for inputproto not requiredGaetan Nadon2-8/+1
The check should be in PKG_CHECK_MODULES permanently. The XORG_DRIVER_CHECK_EXT will add inputproto to PKG_CHECK_MODULES only if the extension is available. By definition, this extension is an integral part of the server and is always present. The server always sets XINPUT macro to 1. The conditional code was removed Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16config: remove extension check for unused RANDR extensionGaetan Nadon1-1/+0
The randr protocol is not used, no randr*.h are included. Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16config: remove AH_TOP autoheader statementGaetan Nadon5-2/+4
The generated config.h does not need to include xorg-server.h for the content it provides. Add #include <xorg-server.h> in .[hc] files as needed. Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>