xfree86: warn some more about potential missing input devices.
Put out a warning if xorg.conf has InputDevice sections, but these aren't referenced in the used ServerLayout. This is only performed if AllowEmptyInput is enabled. The reason behind this is that the server used to auto-add the first mouse/keyboard sections if none where referenced. Now, with HAL and AEI enabled by default, setups that relied on this auto-adding break and are left without input devices. The least we can do is warn them.
This commit is contained in:
parent
f30b0823db
commit
47160edec7
|
@ -2479,6 +2479,16 @@ checkInput(serverLayoutPtr layout) {
|
|||
"\tThe server relies on HAL to provide the list of input "
|
||||
"devices.\n\tIf no devices become available, reconfigure "
|
||||
"HAL.\n");
|
||||
if (!layout->inputs || !*layout->inputs)
|
||||
{
|
||||
/* No input device specified in ServerLayout. */
|
||||
if (xf86configptr->conf_input_lst &&
|
||||
xf86configptr->conf_input_lst->inp_identifier)
|
||||
xf86Msg(X_WARNING, "Input devices specified in xorg.conf, but"
|
||||
" not referenced in ServerLayout.\n\tThese devices"
|
||||
" will NOT be available.\n");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user