Reorder extension initialisation for non-Xorg
Reorder static extension initialisation in miinitext for non-Xorg servers to match Xorg's order. Tested with Xephyr; checked that the extension list was identical before and after. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
5079db78ae
commit
13552a5c47
128
mi/miinitext.c
128
mi/miinitext.c
|
@ -329,62 +329,79 @@ InitExtensions(int argc, char *argv[])
|
||||||
if (!noGEExtension)
|
if (!noGEExtension)
|
||||||
GEExtensionInit();
|
GEExtensionInit();
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
|
||||||
if (!noPanoramiXExtension)
|
|
||||||
PanoramiXExtensionInit();
|
|
||||||
#endif
|
|
||||||
#ifdef INXQUARTZ
|
|
||||||
if (!noPseudoramiXExtension)
|
|
||||||
PseudoramiXExtensionInit();
|
|
||||||
#endif
|
|
||||||
ShapeExtensionInit();
|
ShapeExtensionInit();
|
||||||
|
|
||||||
#ifdef MITSHM
|
#ifdef MITSHM
|
||||||
if (!noMITShmExtension)
|
if (!noMITShmExtension)
|
||||||
ShmExtensionInit();
|
ShmExtensionInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
XInputExtensionInit();
|
XInputExtensionInit();
|
||||||
|
|
||||||
#ifdef XTEST
|
#ifdef XTEST
|
||||||
if (!noTestExtensions)
|
if (!noTestExtensions)
|
||||||
XTestExtensionInit();
|
XTestExtensionInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
BigReqExtensionInit();
|
BigReqExtensionInit();
|
||||||
#if defined(SCREENSAVER)
|
|
||||||
if (!noScreenSaverExtension)
|
|
||||||
ScreenSaverExtensionInit();
|
|
||||||
#endif
|
|
||||||
#ifdef XV
|
|
||||||
if (!noXvExtension) {
|
|
||||||
XvExtensionInit();
|
|
||||||
XvMCExtensionInit();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
SyncExtensionInit();
|
SyncExtensionInit();
|
||||||
XkbExtensionInit();
|
XkbExtensionInit();
|
||||||
XCMiscExtensionInit();
|
XCMiscExtensionInit();
|
||||||
#ifdef XRECORD
|
|
||||||
if (!noTestExtensions)
|
|
||||||
RecordExtensionInit();
|
|
||||||
#endif
|
|
||||||
#ifdef DBE
|
|
||||||
if (!noDbeExtension)
|
|
||||||
DbeExtensionInit();
|
|
||||||
#endif
|
|
||||||
#ifdef XCSECURITY
|
#ifdef XCSECURITY
|
||||||
if (!noSecurityExtension)
|
if (!noSecurityExtension)
|
||||||
SecurityExtensionInit();
|
SecurityExtensionInit();
|
||||||
#endif
|
#endif
|
||||||
#ifdef XSELINUX
|
|
||||||
if (!noSELinuxExtension)
|
#ifdef PANORAMIX
|
||||||
SELinuxExtensionInit();
|
if (!noPanoramiXExtension)
|
||||||
|
PanoramiXExtensionInit();
|
||||||
#endif
|
#endif
|
||||||
#if defined(DPMSExtension) && !defined(NO_HW_ONLY_EXTS)
|
|
||||||
if (!noDPMSExtension)
|
#ifdef INXQUARTZ
|
||||||
DPMSExtensionInit();
|
if (!noPseudoramiXExtension)
|
||||||
|
PseudoramiXExtensionInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef XFIXES
|
||||||
|
/* must be before Render to layer DisplayCursor correctly */
|
||||||
|
if (!noXFixesExtension)
|
||||||
|
XFixesExtensionInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef XF86BIGFONT
|
#ifdef XF86BIGFONT
|
||||||
if (!noXFree86BigfontExtension)
|
if (!noXFree86BigfontExtension)
|
||||||
XFree86BigfontExtensionInit();
|
XFree86BigfontExtensionInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (!noRenderExtension)
|
||||||
|
RenderExtensionInit();
|
||||||
|
|
||||||
|
#ifdef RANDR
|
||||||
|
if (!noRRExtension)
|
||||||
|
RRExtensionInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef COMPOSITE
|
||||||
|
if (!noCompositeExtension)
|
||||||
|
CompositeExtensionInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef DAMAGE
|
||||||
|
if (!noDamageExtension)
|
||||||
|
DamageExtensionInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef XSELINUX
|
||||||
|
if (!noSELinuxExtension)
|
||||||
|
SELinuxExtensionInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(SCREENSAVER)
|
||||||
|
if (!noScreenSaverExtension)
|
||||||
|
ScreenSaverExtensionInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(NO_HW_ONLY_EXTS)
|
#if !defined(NO_HW_ONLY_EXTS)
|
||||||
#if defined(XF86VIDMODE)
|
#if defined(XF86VIDMODE)
|
||||||
if (!noXFree86VidModeExtension)
|
if (!noXFree86VidModeExtension)
|
||||||
|
@ -394,37 +411,42 @@ InitExtensions(int argc, char *argv[])
|
||||||
if (!noXFree86DGAExtension)
|
if (!noXFree86DGAExtension)
|
||||||
XFree86DGAExtensionInit();
|
XFree86DGAExtensionInit();
|
||||||
#endif
|
#endif
|
||||||
#ifdef XF86DRI
|
#ifdef DPMSExtension
|
||||||
if (!noXFree86DRIExtension)
|
if (!noDPMSExtension)
|
||||||
XFree86DRIExtensionInit();
|
DPMSExtensionInit();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef XFIXES
|
|
||||||
/* must be before Render to layer DisplayCursor correctly */
|
#ifdef XV
|
||||||
if (!noXFixesExtension)
|
if (!noXvExtension) {
|
||||||
XFixesExtensionInit();
|
XvExtensionInit();
|
||||||
#endif
|
XvMCExtensionInit();
|
||||||
if (!noRenderExtension)
|
}
|
||||||
RenderExtensionInit();
|
|
||||||
#ifdef RANDR
|
|
||||||
if (!noRRExtension)
|
|
||||||
RRExtensionInit();
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RES
|
#ifdef RES
|
||||||
if (!noResExtension)
|
if (!noResExtension)
|
||||||
ResExtensionInit();
|
ResExtensionInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef XRECORD
|
||||||
|
if (!noTestExtensions)
|
||||||
|
RecordExtensionInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef DBE
|
||||||
|
if (!noDbeExtension)
|
||||||
|
DbeExtensionInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !defined(NO_HW_ONLY_EXTS) && defined(XF86DRI)
|
||||||
|
if (!noXFree86DRIExtension)
|
||||||
|
XFree86DRIExtensionInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef DMXEXT
|
#ifdef DMXEXT
|
||||||
DMXExtensionInit(); /* server-specific extension, cannot be disabled */
|
DMXExtensionInit(); /* server-specific extension, cannot be disabled */
|
||||||
#endif
|
#endif
|
||||||
#ifdef COMPOSITE
|
|
||||||
if (!noCompositeExtension)
|
|
||||||
CompositeExtensionInit();
|
|
||||||
#endif
|
|
||||||
#ifdef DAMAGE
|
|
||||||
if (!noDamageExtension)
|
|
||||||
DamageExtensionInit();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GLXEXT
|
#ifdef GLXEXT
|
||||||
if (serverGeneration == 1)
|
if (serverGeneration == 1)
|
||||||
|
|
Loading…
Reference in New Issue