From 9c80eda826448822328bb678a7d284cc43fffb17 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 25 Apr 2007 16:35:04 -0400 Subject: 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 1db27f1..2a57e4e 100644 --- a/randr/rrxinerama.c +++ b/randr/rrxinerama.c @@ -428,6 +428,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