mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-24 07:30:30 +01:00
Don't clobber input device options from xorg.conf
Since commitb8d9c5ffremoved commonOptions, we now need to append the "Core{Keyboard,Pointer}" options to the existing list. Fixes passing options to devices confirured in xorg.conf on systems where autoaddevices is false. Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit00779932de)
This commit is contained in:
parent
fe90f0f270
commit
efe69b4555
1 changed files with 4 additions and 2 deletions
|
|
@ -1224,7 +1224,8 @@ checkCoreInputDevices(serverLayoutPtr servlayoutp, Bool implicitLayout)
|
|||
devs[count - 1] = xnfalloc(sizeof(InputInfoRec));
|
||||
*devs[count - 1] = Pointer;
|
||||
devs[count - 1]->options =
|
||||
xf86addNewOption(NULL, xnfstrdup("CorePointer"), NULL);
|
||||
xf86addNewOption(devs[count -1]->options,
|
||||
xnfstrdup("CorePointer"), NULL);
|
||||
devs[count] = NULL;
|
||||
servlayoutp->inputs = devs;
|
||||
}
|
||||
|
|
@ -1364,7 +1365,8 @@ checkCoreInputDevices(serverLayoutPtr servlayoutp, Bool implicitLayout)
|
|||
devs[count - 1] = xnfalloc(sizeof(InputInfoRec));
|
||||
*devs[count - 1] = Keyboard;
|
||||
devs[count - 1]->options =
|
||||
xf86addNewOption(NULL, xnfstrdup("CoreKeyboard"), NULL);
|
||||
xf86addNewOption(devs[count - 1]->options,
|
||||
xnfstrdup("CoreKeyboard"), NULL);
|
||||
devs[count] = NULL;
|
||||
servlayoutp->inputs = devs;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue