Fix wrong read Protocol and Device from xorg.conf

Add call xf86CollectInputOptions() before using pInfo->options.
The bug is seeing by ABI < 12.

Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com>
Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Alexandr Shadchin
2011-08-19 21:07:13 +06:00
committed by Peter Hutterer
parent 7bb5cbecbc
commit b65651974e

View File

@@ -872,6 +872,8 @@ MousePreInit(InputDriverPtr drv, IDevPtr dev, int flags)
pInfo->private_flags = 0;
pInfo->always_core_feedback = NULL;
COLLECT_INPUT_OPTIONS(pInfo, NULL);
if (NewMousePreInit(drv, pInfo, flags) == Success)
{
/* Check if SendDragEvents has been disabled. */