mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 09:00:05 +01:00
Bug #9023: Only check mice for "mouse" or "void" if identifier is != NULL.
This commit is contained in:
parent
a724b7f130
commit
26d2e45bdb
1 changed files with 1 additions and 1 deletions
|
|
@ -1307,7 +1307,7 @@ checkCoreInputDevices(serverLayoutPtr servlayoutp, Bool implicitLayout)
|
|||
* events, unless a 'void' section is found, in which case the user
|
||||
* probably wants to run footless.
|
||||
*/
|
||||
for (i = servlayoutp->inputs; i->driver; i++) {
|
||||
for (i = servlayoutp->inputs; i->identifier && i->driver; i++) {
|
||||
if (!strcmp(i->driver, "void") || !strcmp(i->driver, "mouse")) {
|
||||
found = 1; break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue