mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
kdrive: output meaningful error message for HAL devices.
kdrive ignores all devices from hal as they don't have the 'type' option set. Instead of "Unrecognised device identifier!" print out "Ignoring device from HAL." to indicate that the errors surrounding the device don't really matter. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
@@ -2272,6 +2272,14 @@ NewInputDeviceRequest(InputOption *options, DeviceIntPtr *pdev)
|
||||
return BadValue;
|
||||
}
|
||||
}
|
||||
#ifdef CONFIG_HAL
|
||||
else if (strcmp(option->key, "_source") == 0 &&
|
||||
strcmp(option->value, "server/hal") == 0)
|
||||
{
|
||||
ErrorF("Ignoring device from HAL.\n");
|
||||
return BadValue;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (!ki && !pi) {
|
||||
|
||||
Reference in New Issue
Block a user