mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-13 23:40:25 +01:00
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
e6cc0cca32
commit
2d4dede109
1 changed files with 10 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue