From 39db182b637041255ed6dac739ff77c8e4e07c30 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 8 Dec 2008 12:12:39 +1000 Subject: 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 Signed-off-by: Peter Hutterer --- hw/xfree86/common/xf86Init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index eacf34449..139340e73 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -1315,6 +1315,8 @@ InitInput(argc, argv) xf86Info.vtRequestsPending = FALSE; + mieqInit(); + /* Call the PreInit function for each input device instance. */ for (pDev = xf86ConfigLayout.inputs; pDev && *pDev; pDev++) { /* Replace obsolete keyboard driver with kbd */ @@ -1326,8 +1328,6 @@ InitInput(argc, argv) if (xf86NewInputDevice(*pDev, &dev, TRUE) == BadAlloc) break; } - - mieqInit(); } /* -- cgit v1.2.3