diff options
author | Benjamin Tissoires <tissoire@cena.fr> | 2010-02-10 14:28:15 +0100 |
---|---|---|
committer | Benjamin Tissoires <tissoire@cena.fr> | 2010-03-15 19:05:33 +0100 |
commit | 2f39e33ad89e24a58718443339a94c396360d1a5 (patch) | |
tree | 3e0bc8a5bcebdd5b64ce642e67a365b57b3581d9 | |
parent | 13387a7f1f8a05ae8ea8f29cb0c47ce1b79a3004 (diff) |
Allow creation of subdevices for non-hotplugged devices.
This patch adds two options to the original device. Without
them, the function NewInputDeviceRequest does not create the
new device and thus forcing us not being able to use multitouch.
Signed-off-by: Benjamin Tissoires <tissoire@cena.fr>
-rw-r--r-- | src/evdev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c index 6b01902..989dc58 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -2812,6 +2812,10 @@ EvdevCreateSubDevice(InputInfoPtr pInfo, int id) { pInfo->options = xf86AddNewOption(pInfo->options, "Type", "core"); pInfo->options = xf86AddNewOption(pInfo->options, "SendCoreEvents", "on"); + /* forcing the evdev driver if it was not correctly detected */ + pInfo->options = xf86AddNewOption(pInfo->options, "driver", "evdev"); + pInfo->options = xf86AddNewOption(pInfo->options, "name", pInfo->name); + /* Create new device */ input_options = EvdevOptionDupConvert(pInfo->options); |