Bug #9023: Only check mice for "mouse" or "void" if identifier is != NULL.
This commit is contained in:
parent
a724b7f130
commit
26d2e45bdb
|
@ -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…
Reference in New Issue
Block a user