summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-07-10 02:02:54 +0100
committerKeith Packard <keithp@keithp.com>2012-07-09 23:06:41 -0700
commit13552a5c4701097a1507a99ed8366ab1438844b6 (patch)
tree34aaea94ae6393fd799faa6e27678c8eb44f9e28 /mi
parent5079db78aea8fa42e781dd876c1ee1c31571b3ae (diff)
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>
Diffstat (limited to 'mi')
-rw-r--r--mi/miinitext.c128
1 files changed, 75 insertions, 53 deletions
diff --git a/mi/miinitext.c b/mi/miinitext.c
index 13e1b68ea..13f554a3f 100644
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -329,62 +329,79 @@ InitExtensions(int argc, char *argv[])
if (!noGEExtension)
GEExtensionInit();
-#ifdef PANORAMIX
- if (!noPanoramiXExtension)
- PanoramiXExtensionInit();
-#endif
-#ifdef INXQUARTZ
- if (!noPseudoramiXExtension)
- PseudoramiXExtensionInit();
-#endif
ShapeExtensionInit();
+
#ifdef MITSHM
if (!noMITShmExtension)
ShmExtensionInit();
#endif
+
XInputExtensionInit();
+
#ifdef XTEST
if (!noTestExtensions)
XTestExtensionInit();
#endif
+
BigReqExtensionInit();
-#if defined(SCREENSAVER)
- if (!noScreenSaverExtension)
- ScreenSaverExtensionInit();
-#endif
-#ifdef XV
- if (!noXvExtension) {
- XvExtensionInit();
- XvMCExtensionInit();
- }
-#endif
SyncExtensionInit();
XkbExtensionInit();
XCMiscExtensionInit();
-#ifdef XRECORD
- if (!noTestExtensions)
- RecordExtensionInit();
-#endif
-#ifdef DBE
- if (!noDbeExtension)
- DbeExtensionInit();
-#endif
+
#ifdef XCSECURITY
if (!noSecurityExtension)
SecurityExtensionInit();
#endif
-#ifdef XSELINUX
- if (!noSELinuxExtension)
- SELinuxExtensionInit();
+
+#ifdef PANORAMIX
+ if (!noPanoramiXExtension)
+ PanoramiXExtensionInit();
#endif
-#if defined(DPMSExtension) && !defined(NO_HW_ONLY_EXTS)
- if (!noDPMSExtension)
- DPMSExtensionInit();
+
+#ifdef INXQUARTZ
+ if (!noPseudoramiXExtension)
+ PseudoramiXExtensionInit();
#endif
+
+#ifdef XFIXES
+ /* must be before Render to layer DisplayCursor correctly */
+ if (!noXFixesExtension)
+ XFixesExtensionInit();
+#endif
+
#ifdef XF86BIGFONT
if (!noXFree86BigfontExtension)
XFree86BigfontExtensionInit();
#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(XF86VIDMODE)
if (!noXFree86VidModeExtension)
@@ -394,36 +411,41 @@ InitExtensions(int argc, char *argv[])
if (!noXFree86DGAExtension)
XFree86DGAExtensionInit();
#endif
-#ifdef XF86DRI
- if (!noXFree86DRIExtension)
- XFree86DRIExtensionInit();
-#endif
+#ifdef DPMSExtension
+ if (!noDPMSExtension)
+ DPMSExtensionInit();
#endif
-#ifdef XFIXES
- /* must be before Render to layer DisplayCursor correctly */
- if (!noXFixesExtension)
- XFixesExtensionInit();
#endif
- if (!noRenderExtension)
- RenderExtensionInit();
-#ifdef RANDR
- if (!noRRExtension)
- RRExtensionInit();
+
+#ifdef XV
+ if (!noXvExtension) {
+ XvExtensionInit();
+ XvMCExtensionInit();
+ }
#endif
+
#ifdef RES
if (!noResExtension)
ResExtensionInit();
#endif
-#ifdef DMXEXT
- DMXExtensionInit(); /* server-specific extension, cannot be disabled */
+
+#ifdef XRECORD
+ if (!noTestExtensions)
+ RecordExtensionInit();
#endif
-#ifdef COMPOSITE
- if (!noCompositeExtension)
- CompositeExtensionInit();
+
+#ifdef DBE
+ if (!noDbeExtension)
+ DbeExtensionInit();
#endif
-#ifdef DAMAGE
- if (!noDamageExtension)
- DamageExtensionInit();
+
+#if !defined(NO_HW_ONLY_EXTS) && defined(XF86DRI)
+ if (!noXFree86DRIExtension)
+ XFree86DRIExtensionInit();
+#endif
+
+#ifdef DMXEXT
+ DMXExtensionInit(); /* server-specific extension, cannot be disabled */
#endif
#ifdef GLXEXT