xfree86: init EQ before trying to initialise the devices (#18890)

The kbd driver may send events during device initialisation, and these events
need the EQ set up already.

X.Org Bug 18890 <http://bugs.freedesktop.org/show_bug.cgi?id=18890>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2008-12-08 12:12:39 +10:00
parent 78a62d7713
commit 39db182b63

View File

@ -1315,6 +1315,8 @@ InitInput(argc, argv)
xf86Info.vtRequestsPending = FALSE; xf86Info.vtRequestsPending = FALSE;
mieqInit();
/* Call the PreInit function for each input device instance. */ /* Call the PreInit function for each input device instance. */
for (pDev = xf86ConfigLayout.inputs; pDev && *pDev; pDev++) { for (pDev = xf86ConfigLayout.inputs; pDev && *pDev; pDev++) {
/* Replace obsolete keyboard driver with kbd */ /* Replace obsolete keyboard driver with kbd */
@ -1326,8 +1328,6 @@ InitInput(argc, argv)
if (xf86NewInputDevice(*pDev, &dev, TRUE) == BadAlloc) if (xf86NewInputDevice(*pDev, &dev, TRUE) == BadAlloc)
break; break;
} }
mieqInit();
} }
/* /*