Skip to content

Commit

Permalink
XQuartz: Fix runtime regressions introduced by extension loading changes
Browse files Browse the repository at this point in the history
 * GLX is now loaded
 * PseudoramiX loading is back in miinitext.  It needs to be loaded
   before RandR.

Regression-from: 27a624b
Regression-from: 5f5bbbe

Signed-off-by: Jeremy Huddleston <[email protected]>
  • Loading branch information
jeremyhu committed Jul 24, 2012
1 parent 0d64e88 commit 3b7f313
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 9 additions & 3 deletions hw/xquartz/quartz.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,21 @@ QuartzSetupScreen(int index,
return TRUE;
}

static const ExtensionModule quartzExtensions[] = {
{ PseudoramiXExtensionInit, "PseudoramiX", &noPseudoramiXExtension, NULL },
static ExtensionModule quartzExtensions[] = {
/* PseudoramiX needs to be done before RandR, so
* it is in miinitext.c until it can be reordered.
* { PseudoramiXExtensionInit, "PseudoramiX", &noPseudoramiXExtension },
*/
#ifdef GLXEXT
{GlxExtensionInit, "GLX", &noGlxExtension},
#endif
};

/*
* QuartzExtensionInit
* Initialises XQuartz-specific extensions.
*/
void QuartzExtensionInit(void)
static void QuartzExtensionInit(void)
{
int i;

Expand Down
6 changes: 6 additions & 0 deletions mi/miinitext.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ static ExtensionModule staticExtensions[] = {
#ifdef PANORAMIX
{PanoramiXExtensionInit, PANORAMIX_PROTOCOL_NAME, &noPanoramiXExtension},
#endif
#ifdef INXQUARTZ
/* PseudoramiXExtensionInit must be done before RRExtensionInit, or
* XQuartz will render windows offscreen.
*/
{PseudoramiXExtensionInit, "PseudoramiX", &noPseudoramiXExtension},
#endif
#ifdef XFIXES
/* must be before Render to layer DisplayCursor correctly */
{XFixesExtensionInit, "XFIXES", &noXFixesExtension},
Expand Down

0 comments on commit 3b7f313

Please sign in to comment.