diff options
author | Julien Cristau <jcristau@debian.org> | 2009-09-27 14:45:47 +0200 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2009-12-30 19:05:44 +0000 |
commit | 435f27667f84269768efecde34de4af2b2d43376 (patch) | |
tree | 308b00d27cd065fb19d8aec663e0b7cf0b0e54e3 /hw/kdrive | |
parent | b8b12e41c453c3bf94b11e7a18934d3b6e1869bf (diff) |
config: add libudev input-hotplug backend
Add a backend using libudev for input hotplug, and disable the hal and
dbus backends if this one is enabled.
XKB configuration happens using xkb{rules,model,layout,variant,options}
properties (case-insensitive) on the device. We fill in InputAttributes
to allow configuration through InputClass in Xorg.
Requires udev 148 for the input_id helper and ID_INPUT* properties.
Signed-off-by: Julien Cristau <jcristau@debian.org>
Acked-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'hw/kdrive')
-rw-r--r-- | hw/kdrive/src/kinput.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c index c08459112..09b5d3bd4 100644 --- a/hw/kdrive/src/kinput.c +++ b/hw/kdrive/src/kinput.c @@ -2281,6 +2281,14 @@ NewInputDeviceRequest(InputOption *options, InputAttributes *attrs, return BadValue; } #endif +#ifdef CONFIG_UDEV + else if (strcmp(option->key, "_source") == 0 && + strcmp(option->value, "server/udev") == 0) + { + ErrorF("Ignoring device from udev.\n"); + return BadValue; + } +#endif } if (!ki && !pi) { |