Commit Graph

157 Commits

Author SHA1 Message Date
Gaetan Nadon
a4dfc92927 config: remove extension check for unused RANDR extension
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-16 16:26:42 -04:00
Gaetan Nadon
ecc0b614aa config: remove AH_TOP autoheader statement
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>
2010-05-16 16:26:42 -04:00
Gaetan Nadon
4ef973d4c7 Remove unused SCO driver files
The SCO driver has never been enabled since its original commit

Reviewed-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16 16:26:41 -04:00
Gaetan Nadon
0071e2eb6b README: update text content from sgml content
Reviewed-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16 16:26:41 -04:00
Gaetan Nadon
4fc24a0093 README: fix linuxdoc content
defs.ent are located under X11 directory
ident tag is not a Linuxdoc tag
replace docbook email tag with linuxdoc email tag
replace <code> with <verb> which preserves tabs

Reviewed-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-16 16:26:41 -04:00
Márton Németh
3ee9b72085 Bug 10866 - serial Genius NetScroll+ autodetection
https://bugs.freedesktop.org/show_bug.cgi?id=10866

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-04-13 00:37:15 -07:00
Alan Coopersmith
c74d482378 Solaris: Handle ENODEV & other errors from VUID protocol mice
Adapted code from keyboard fix for ENODEV to do the same thing for the mouse

Use normal read() calls for reading from the mouse so we can get the ENODEV
errors, instead of going through the Xisb*() wrappers, which are needed for
reading directly from serial ports (which this code never does since it's
only used with VUID mouse event streams from the kernel).

Fixes http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6844148

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-03-22 18:43:43 -07:00
Gaetan Nadon
a2d158c290 config: remove unused -I$(top_srcdir)/src directive
There are no sibling directories that need access to /src headers

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-03-09 13:12:10 -05:00
Alan Coopersmith
c9ebc0c532 Update Sun license notices to current X.Org standard form
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-01-15 14:48:49 -08:00
Gaetan Nadon
36cb94a9af configure.ac: remove unused sdkdir=$(pkg-config...) statement
The sdkdir variable isn't use, so remove the statement.

Acked-by: Dan Nicholson <dbn.lists@gmail.com>

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-12-30 15:12:59 -05:00
Alan Coopersmith
327ede732b Silence sed substitutions in make output
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-12-16 18:17:26 -08:00
Peter Hutterer
c6ff6c3bba Plug minor memory leak.
This change splits the DEVICE_CLOSE behaviour from the DEVICE_OFF behaviour.
This doesn't change functionality as the server guarantees DEVICE_OFF to be
called first and DEVICE_CLOSE thus becomes a noop anyway.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-12-08 11:04:22 +10:00
Gaetan Nadon
6ac394cafc Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
Now that the INSTALL file is generated.
Allows running make maintainer-clean.
2009-11-23 09:25:05 -05:00
Gaetan Nadon
9705701af2 INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
Automake 'foreign' option is specified in configure.ac.
Remove from Makefile.am
2009-10-28 14:41:41 -04:00
Gaetan Nadon
a80227b40d INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
Add missing INSTALL file. Use standard GNU file on building tarball
README may have been updated
Remove AUTHORS file as it is empty and no content available yet.
Remove NEWS file as it is empty and no content available yet.
2009-10-28 14:09:09 -04:00
Gaetan Nadon
ad49b908b8 Several driver modules do not have a ChangeLog target in Makefile.am #23814
The git generated ChangeLog replaces the hand written one.
Update configure.ac to xorg-macros level 1.3.
Use XORG_DEFAULT_OPTIONS which replaces four XORG_* macros
Update Makefile.am to add ChangeLog target if missing
Remove ChangeLog from EXTRA_DIST or *CLEAN variables
This is a pre-req for the INSTALL_CMD
2009-10-26 12:54:20 -04:00
Gaetan Nadon
034f543054 .gitignore: use common defaults with custom section # 24239
Using common defaults will reduce errors and maintenance.
Only the very small or inexistent custom section need periodic maintenance
when the structure of the component changes. Do not edit defaults.
2009-10-22 12:34:16 -04:00
Peter Hutterer
2b6dc8ccfe mouse 1.5.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-mouse-1.5.0
2009-10-06 12:09:46 +10:00
Peter Hutterer
6bae95035d Require macros 1.3 for XORG_DEFAULT_OPTIONS
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-10-06 12:07:45 +10:00
Alan Coopersmith
622cf18347 Fix crashes due to MouseBlockHandler/MouseWakeupHandler with invalid devices
Don't install the handlers if devices failed to open/initalize.
Remove the handlers when disabling Emulate3Soft mode, since otherwise
they'll be left around when device is closed & device structs are freed.

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-09-12 20:20:41 -07:00
Peter Hutterer
bc7933171e mouse 1.4.99.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-mouse-1.4.99.1
2009-09-09 11:48:58 +10:00
Gaetan Nadon
04a29c8c8e xf86-input-mouse: Remove unused .cvsignore file #23776
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-08 10:35:46 +10:00
Donald Kayser
fa99714445 signed/unsigned fixes for delta x,y movement
Changed the cast of (char) to (signed char) while computing delta x
and delta y mouse movements. The C standard does not define compiler
behavior, and currently with PPC builds, the (char) cast is unsigned.
To guarantee that the compiler will generate signed values, the cast
has been changed

Signed-off-by: Donald Kayser <xorg@kayser.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-03 09:22:30 +10:00
Alan Coopersmith
f292f23baf sun_mouse: Don't try calling ioctls if mouse fd wasn't opened
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-20 15:11:47 -07:00
Alan Coopersmith
f93c927178 Remove check for OS/2
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-20 15:10:05 -07:00
Alan Coopersmith
1be9e3cf0c sun_mouse: Check if streams module is already on the stack before pushing it
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-20 15:10:04 -07:00
Dima Kogan
bf95ccf496 Restrict wheel emulation to a single axis at a time.
Wheel emulation works for both horizontal and vertical axes. Thus, if a
device doesn't move in perfect straight line, scroll events build up on the
respective other axis.

In some clients, scroll wheel events have specific meanings other than
scrolling (e.g. mplayer). In these clients, erroneous scrolling events come
at a high cost.

Thus, if a scroll wheel event is generated for one axis, reset the inertia
of the other axis to 0, avoiding the buildup of these erroneous scrolling
events.

Signed-off-by: Dima Kogan <dkogan@secretsauce.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-18 12:01:52 +10:00
Dima Kogan
2d43329d77 Allow 0 as wheel emulation button for unconditional scrolling (#20529)
If wheel emulation is on and the emulation button is 0, then any x/y motion
of the device is converted into wheel events. The device becomes a
scrolling-only device.

Signed-off-by: Dima Kogan <dkogan@dkogan@cds.caltech.edu>
Signed-off-by: Dima Kogan <dkogan@secretsauce.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-18 12:01:39 +10:00
Charlie
0996fd2e3d Merge branch 'master' of ssh://mbalmer@git.freedesktop.org/git/xorg/driver/xf86-input-mouse 2009-07-09 10:05:46 +02:00
Charlie
66bdf8d3f2 Conditionally declare some variables that are only used conditionally.
Reviewed-by: Matthieu Herrn <matthieu@openbsd.org>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-09 10:04:08 +02:00
Charlie
8a3f6f7521 Conditionally declare some variables that are only used conditionally. 2009-07-09 08:09:54 +02:00
Peter Hutterer
2ddc4e9b28 Protect against ABI_XINPUT_VERSION 7.
Missing the actual button and axis labeling, this can be added at a later
point in time.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-18 16:12:22 +10:00
Peter Hutterer
91bf15dd2a Remove ModuleInfoRec and associated bits.
ModuleInfoRec was removed with 2107becb0ce2ffda001be65728c53563496d8d50 from
the server. The MouseOpts were only used from the ModuleInfoRec, they're
gone now too.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-30 21:09:44 +10:00
Peter Hutterer
b698a24ab2 Remove xf86MouseProtocolIDToName and xf86MouseProtocolNameToID.
Both were only used from the xf86-misc extension which is gone from the
server as of 1.6.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-08 22:12:07 +10:00
Peter Hutterer
6887ca0de8 Require xorg-server 1.5.99.901 or higher.
1.6 is the first server release that has the xf86OSmouse.h and related code
removed. This code has moved into the mouse driver and attempts of using a
mouse driver that provides xf86OSmouse.h with a pre-1.6 xserver may fail.

See also:
http://lists.freedesktop.org/archives/xorg/2009-March/044501.html

Reported-by: Jeremy C. Reed <reed@reedmedia.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-25 08:51:38 +10:00
Paulo Cesar Pereira de Andrade
abc65bec5c Janitor: use $PKG_CONFIG and update .gitignore.
Signed-off-by: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
2009-02-04 16:45:07 -08:00
Alan Coopersmith
5058dc3402 Version 1.4.0 xf86-input-mouse-1.4.0 2009-01-09 18:38:57 -08:00
Alan Coopersmith
194fed98fe Add note on hal-based configuration to man page 2009-01-09 14:41:26 -08:00
Alan Coopersmith
299bd6c164 Add copyright notices for OS mouse code to COPYING file 2009-01-09 08:45:38 -08:00
Alan Coopersmith
0968d56233 Unifdef XFree86LOADER 2009-01-08 21:48:13 -08:00
Alan Coopersmith
47c5e3a368 Remove some #if 1 statements 2009-01-08 21:43:58 -08:00
Alan Coopersmith
7039165d70 Comment typo fixes 2009-01-08 21:38:54 -08:00
Alan Coopersmith
a61f0f9229 sun_mouse: fallback to commonOptions for StreamsModule too 2009-01-08 21:29:00 -08:00
Alan Coopersmith
4623258b48 Clear assorted compiler, sparse & lint warnings
mouse.c:1004:35: warning: Using plain integer as NULL pointer
sun_mouse.c:325: warning: 'absX' might be used uninitialized in this function
sun_mouse.c:325: warning: 'absY' might be used uninitialized in this function
sun_mouse.c: (158) warning: constant truncated by assignment

declared global, could be static:
    hardProtocolList    mouse.c(3151)
    softProtocolList    mouse.c(3163)
    serialDefaultsList  mouse.c(3366)
2009-01-08 21:21:18 -08:00
Alan Coopersmith
6f14e85691 Add XORG_CWARNFLAGS & XORG_WITH_LINT for more compiler checking 2009-01-08 21:20:58 -08:00
Alan Coopersmith
24d9306546 Replace static changelog with one generated via XORG_CHANGELOG 2009-01-08 20:40:10 -08:00
Peter Breitenlohner
cd476cc093 Fix linux build
HAVE_XORG_CONFIG_H is a leftover from the server sources (where this file used
to reside).

Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-12-03 16:33:32 +10:00
Alan Coopersmith
003c297d29 sun_mouse: check for Device in commonOptions if pInfo->options isn't set yet 2008-12-01 14:36:43 -08:00
Matthieu Herrb
1e23b944aa W axis support for bsd_mouse. 2008-11-22 17:36:40 +01:00
Matthieu Herrb
e7e3cd9bed prevent a double free of mouse private structure.
Mark pInfo->private as NULL after freeing it on the error path.
2008-11-21 20:01:42 +01:00