mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-15 03:18:06 +02:00
xfree86: don't warn about nonexisting core pointer/keyboard in config.
In the vast majority of cases there is no xorg.conf that specifies a core pointer/keyboard. Skip this warning, since we'll get another notification about how the server relies on the config backend for input devices anyway. Leave the warning in for the error case (AEI off). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Fernando Carrijo <fcarrijo@yahoo.com.br> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
This commit is contained in:
parent
c39c8ece9b
commit
1160681032
1 changed files with 8 additions and 16 deletions
|
|
@ -1286,14 +1286,10 @@ checkCoreInputDevices(serverLayoutPtr servlayoutp, Bool implicitLayout)
|
|||
}
|
||||
}
|
||||
|
||||
if (!foundPointer) {
|
||||
if (!xf86Info.allowEmptyInput) {
|
||||
/* This shouldn't happen. */
|
||||
xf86Msg(X_ERROR, "Cannot locate a core pointer device.\n");
|
||||
return FALSE;
|
||||
} else {
|
||||
xf86Msg(X_INFO, "Cannot locate a core pointer device.\n");
|
||||
}
|
||||
if (!foundPointer && !xf86Info.allowEmptyInput) {
|
||||
/* This shouldn't happen. */
|
||||
xf86Msg(X_ERROR, "Cannot locate a core pointer device.\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -1430,14 +1426,10 @@ checkCoreInputDevices(serverLayoutPtr servlayoutp, Bool implicitLayout)
|
|||
}
|
||||
}
|
||||
|
||||
if (!foundKeyboard) {
|
||||
if (!xf86Info.allowEmptyInput) {
|
||||
/* This shouldn't happen. */
|
||||
xf86Msg(X_ERROR, "Cannot locate a core keyboard device.\n");
|
||||
return FALSE;
|
||||
} else {
|
||||
xf86Msg(X_INFO, "Cannot locate a core keyboard device.\n");
|
||||
}
|
||||
if (!foundKeyboard && !xf86Info.allowEmptyInput) {
|
||||
/* This shouldn't happen. */
|
||||
xf86Msg(X_ERROR, "Cannot locate a core keyboard device.\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (pointerMsg) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue