When we see an evdev or vmmouse section, assume that it's a mouse, and don't add a default mouse device. This will break users who have an evdev keyboard section but no mouse, and want the mouse to get added by default.
This commit is contained in:
parent
0a6ac99236
commit
4beeab8424
|
@ -1287,9 +1287,13 @@ checkCoreInputDevices(serverLayoutPtr servlayoutp, Bool implicitLayout)
|
||||||
* always synthesize a 'mouse' section configured to send core
|
* always synthesize a 'mouse' section configured to send core
|
||||||
* events, unless a 'void' section is found, in which case the user
|
* events, unless a 'void' section is found, in which case the user
|
||||||
* probably wants to run footless.
|
* probably wants to run footless.
|
||||||
|
*
|
||||||
|
* If you're using an evdev keyboard and expect a default mouse
|
||||||
|
* section ... deal.
|
||||||
*/
|
*/
|
||||||
for (i = servlayoutp->inputs; i->identifier && i->driver; i++) {
|
for (i = servlayoutp->inputs; i->identifier && i->driver; i++) {
|
||||||
if (!strcmp(i->driver, "void") || !strcmp(i->driver, "mouse")) {
|
if (!strcmp(i->driver, "void") || !strcmp(i->driver, "mouse") ||
|
||||||
|
!strcmp(i->driver, "vmmouse") || !strcmp(i->driver, "evdev")) {
|
||||||
found = 1; break;
|
found = 1; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user