mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-28 11:29:16 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user