From 3e04b81de704b88af71f0386cee253a8d7d77354 Mon Sep 17 00:00:00 2001 From: Lee Leahu Date: Thu, 29 Oct 2009 09:32:51 -0500 Subject: [PATCH] temporary fix for bug 24642 - Xinerama - don't add 32bit depth visuals This is a temporary patch. In my testing, all backend screens run at depth 24, and none have visual 0x23 (a depth 32 visual). This patch prevents the inclusion of all depth 32 visuals. With this patch, Opera 10 is able to run in Xdmx correctly. The real cause of this problem needs to be found and a better patch created. --- Xext/panoramiX.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/Xext/panoramiX.c b/Xext/panoramiX.c index 4b7b07e..7b7d9dc 100644 --- a/Xext/panoramiX.c +++ b/Xext/panoramiX.c @@ -644,6 +644,10 @@ Bool PanoramiXCreateConnectionBlock(void) for (i = 0; i < PanoramiXNumDepths; i++) { depth = (xDepth *) (ConnectionInfo + length); depth->depth = PanoramiXDepths[i].depth; + + if (PanoramiXDepths[i].depth == 32) + PanoramiXDepths[i].numVids = 0; + depth->nVisuals = PanoramiXDepths[i].numVids; length += sizeof(xDepth); visual = (xVisualType *)(ConnectionInfo + length); -- 1.6.4.4