xserver/hw/xfree86
Peter Hutterer c2d0b3b437 xfree86: store the InputAttributes in the input device.
InputAttributes largely decide which configuration values get merged from
the xorg.conf.d snippets. While they are available in the config backend,
they are not available for any other callers of NewInputDeviceRequest().

Drivers implementing driver-side hotplugging do not have access to these
attributes and cannot have xorg.conf.d snippets specific to dependent
devices. For example, the following case cannot work right now:

Section "InputClass"
        MatchProduct "Wacom"
        Option "PressCurve" "0 0 100 100"
        ...
EndSection

Section "InputClass"
        MatchProduct "Wacom"
        MatchProduct "eraser"
        Option "PressCurve" "10 10 50 50"
        ...
EndSection

The second section is not triggered, as the wacom driver cannot supply the
InputAttributes to NewInputDeviceRequest().

Add the attributes to the IDevRec and merge them into the InputInfoRec to
make them accessible in the driver. This changes the ABI for input drivers.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2010-05-25 10:06:50 -07:00
..
common xfree86: store the InputAttributes in the input device. 2010-05-25 10:06:50 -07:00
ddc Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
dixmods Return an appropriately-typed error from dixLookupResourceByType. 2010-05-19 12:32:48 -07:00
doc Remove obsolete reference to README.DRI in xorg.conf.man 2010-05-23 21:20:29 -07:00
dri Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
dri2 Set event sequence number in WriteEventsToClient instead of at callers. 2010-05-19 12:32:34 -07:00
exa Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
fbdevhw Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
i2c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
int10 Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
loader Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
modes xf86: allow for no outputs connected at startup operation. 2010-05-23 17:30:09 -07:00
os-support xfree86: bus: remove unused headers 2010-05-24 19:10:51 +03:00
parser xfree86: check for NULL pointer before dereferences it in parser code 2010-04-21 18:07:17 +03:00
ramdac Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
shadowfb Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
utils Fix .man.N targets for AM_SILENT_RULES 2010-03-22 00:45:55 -05:00
vbe xfree86: bus: remove unused headers 2010-05-24 19:10:51 +03:00
vgahw Quit using clientErrorValue in dix/colormap.c. 2010-05-13 17:14:07 -07:00
x86emu Convert x86emu fixed size int typedefs to use stdint types 2010-04-07 16:18:24 -07:00
xaa Replace dixChangeGC with calls directly to the right variant. 2010-05-13 17:14:07 -07:00
xf8_16bpp Update several of my and/or Red Hat's licenses to standard form. 2009-05-14 07:02:44 -04:00
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
Makefile.am Fix relink targets for silent rules 2010-03-22 00:45:52 -05:00
xorgconf.cpp Update xorg.conf man page & sample for changes in Xorg 1.7 2009-09-14 16:03:18 +10:00