summaryrefslogtreecommitdiff
path: root/randr/rrxinerama.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@benzedrine.nwnk.net>2007-04-25 16:35:04 -0400
committerAdam Jackson <ajax@benzedrine.nwnk.net>2007-04-25 16:35:04 -0400
commit9c80eda826448822328bb678a7d284cc43fffb17 (patch)
tree9341af9dc6cade892d065a07e4cfa798c40d4c9b /randr/rrxinerama.c
parentd322608dc929d5f8cda07a53143a4f28423e0460 (diff)
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.
Diffstat (limited to 'randr/rrxinerama.c')
-rw-r--r--randr/rrxinerama.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/randr/rrxinerama.c b/randr/rrxinerama.c
index 1db27f14c..2a57e4e32 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,