Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > e265b08b6bebf8514a189c80db57a2d3 > files > 34

x11-server-1.3.0.0-25.1mdv2008.0.src.rpm

From e701c544089277927bf30f8a5c326a6c92f36b15 Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax@benzedrine.nwnk.net>
Date: Wed, 25 Apr 2007 16:35:04 -0400
Subject: [PATCH] Disable RANDR's fake Xinerama protocol when there's more than one screen.

... in the protocol sense.  Xinerama doesn't have any provision for more
than one protocol screen each with its own geometry.

Red Hat bug #231257.
---
 randr/rrxinerama.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/randr/rrxinerama.c b/randr/rrxinerama.c
index 63a34b5..3b70b01 100644
--- a/randr/rrxinerama.c
+++ b/randr/rrxinerama.c
@@ -425,6 +425,14 @@ RRXineramaExtensionInit(void)
 	return;
 #endif
 
+    /*
+     * Xinerama isn't capable enough to have multiple protocol screens each
+     * with their own output geometry.  So if there's more than one protocol
+     * screen, just don't even try.
+     */
+    if (screenInfo.numScreens > 1)
+	return;
+
     (void) AddExtension(PANORAMIX_PROTOCOL_NAME, 0,0,
 			ProcRRXineramaDispatch,
 			SProcRRXineramaDispatch,
-- 
1.5.2.4