From f1445feac77af65098eef1c2d86ae067d81fc6cb Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Sat, 8 Mar 2008 16:09:47 -0500 Subject: Parse Option "Path" as well as Option "Device". The hotplug core passes Path not Device. With this change, hotplugging works. --- src/evdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/evdev.c b/src/evdev.c index 2a53ded..f641468 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -676,7 +676,9 @@ EvdevPreInit(InputDriverPtr drv, IDevPtr dev, int flags) xf86CollectInputOptions(pInfo, NULL, NULL); xf86ProcessCommonOptions(pInfo, pInfo->options); - device = xf86CheckStrOption(dev->commonOptions, "Device", NULL); + device = xf86CheckStrOption(dev->commonOptions, "Path", NULL); + if (!device) + device = xf86CheckStrOption(dev->commonOptions, "Device", NULL); if (!device) { xf86Msg(X_ERROR, "%s: No device specified.\n", pInfo->name); xfree(pEvdev); -- cgit v1.2.3