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>
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>
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>
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>
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>
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>
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.
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
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.
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>
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>
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>
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>
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>
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)