XINPUT_ABI 9 introduced InputAttributes to NIDR.  Attributes are assigned by
the config backend (or the configuration). Hence, by the time they hit the
driver they've been converted into options already.  From the driver's POV,
duplicating the options is enough, especially since the driver cannot know
which attributes apply to the device anyway.

Signed-off-by: Peter Hutterer <[email protected]>
---
 src/wcmValidateDevice.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c
index 8a47659..e8f4c2b 100644
--- a/src/wcmValidateDevice.c
+++ b/src/wcmValidateDevice.c
@@ -324,7 +324,11 @@ static void wcmHotplug(LocalDevicePtr local, const char 
*type)
 
        input_options = wcmOptionDupConvert(local, type);
 
-       NewInputDeviceRequest(input_options, &dev);
+       NewInputDeviceRequest(input_options,
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 9
+                               NULL,
+#endif
+                               &dev);
        wcmFreeInputOpts(input_options);
 }
 
-- 
1.6.6


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to