xfree86: AllowEmptyInput is true by default - update the xf86Info defaults.

Also set AutoAddDevices and AutoEnableDevices to their defaults.

And in doing so, switch the rest of the defaults over to named intializers.

Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
This commit is contained in:
Peter Hutterer 2008-10-20 17:06:40 +10:30
parent d72cd753b9
commit 0b56b44add

View File

@ -98,37 +98,40 @@ InputInfoPtr xf86InputDevs = NULL;
/* Globals that video drivers may not access */ /* Globals that video drivers may not access */
xf86InfoRec xf86Info = { xf86InfoRec xf86Info = {
-1, /* consoleFd */ .consoleFd = -1,
-1, /* vtno */ .vtno = -1,
FALSE, /* vtSysreq */ .vtSysreq = FALSE,
SKWhenNeeded, /* ddxSpecialKeys */ .ddxSpecialKeys = SKWhenNeeded,
-1, /* lastEventTime */ .lastEventTime = -1,
FALSE, /* vtRequestsPending */ .vtRequestsPending = FALSE,
FALSE, /* dontVTSwitch */ .dontVTSwitch = FALSE,
FALSE, /* dontZap */ .dontZap = FALSE,
FALSE, /* dontZoom */ .dontZoom = FALSE,
FALSE, /* notrapSignals */ .notrapSignals = FALSE,
FALSE, /* caughtSignal */ .caughtSignal = FALSE,
NULL, /* currentScreen */ .currentScreen = NULL,
#ifdef CSRG_BASED #ifdef CSRG_BASED
-1, /* screenFd */ .screenFd = -1,
-1, /* consType */ .consType = -1,
#endif #endif
FALSE, /* allowMouseOpenFail */ .allowMouseOpenFail = FALSE,
TRUE, /* vidModeEnabled */ .vidModeEnabled = TRUE,
FALSE, /* vidModeAllowNonLocal */ .vidModeAllowNonLocal = FALSE,
TRUE, /* miscModInDevEnabled */ .miscModInDevEnabled = TRUE,
FALSE, /* miscModInDevAllowNonLocal */ .miscModInDevAllowNonLocal = FALSE,
Pix24DontCare, /* pixmap24 */ .pixmap24 = Pix24DontCare,
X_DEFAULT, /* pix24From */ .pix24From = X_DEFAULT,
#ifdef __i386__ #ifdef __i386__
FALSE, /* pc98 */ .pc98 = FALSE,
#endif #endif
TRUE, /* pmFlag */ .pmFlag = TRUE,
LogNone, /* syncLog */ .log = LogNone,
FALSE, /* kbdCustomKeycodes */ .kbdCustomKeycodes = FALSE,
FALSE, /* disableRandR */ .disableRandR = FALSE,
X_DEFAULT /* randRFrom */ .randRFrom = X_DEFAULT,
.allowEmptyInput = TRUE,
.autoAddDevices = TRUE,
.autoEnableDevices = TRUE
}; };
const char *xf86ConfigFile = NULL; const char *xf86ConfigFile = NULL;
const char *xf86InputDeviceList = NULL; const char *xf86InputDeviceList = NULL;