Parse Option "Path" as well as Option "Device".

The hotplug core passes Path not Device.  With this change, hotplugging
works.
This commit is contained in:
Adam Jackson
2008-03-08 16:09:47 -05:00
parent ad5bdcb50f
commit f1445feac7

View File

@@ -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);