summaryrefslogtreecommitdiff
path: root/composite
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2007-09-20 14:00:33 -0700
committerAaron Plattner <aplattner@nvidia.com>2007-09-20 14:00:33 -0700
commit50fa8722d35c12e5f0322cebe25faf99c39d4f50 (patch)
treedb35a0cb1a026d6e60db1a6a8f269ca1fc922314 /composite
parentc140d20f4ade973496dcbbd06453402ef0c0e85c (diff)
Set noCompositeExtension to TRUE when failing to initialize the extension (e.g. when Xinerama is enabled).
Diffstat (limited to 'composite')
-rw-r--r--composite/compext.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/composite/compext.c b/composite/compext.c
index 944f8d844..ece51d099 100644
--- a/composite/compext.c
+++ b/composite/compext.c
@@ -674,6 +674,9 @@ CompositeExtensionInit (void)
ExtensionEntry *extEntry;
int s;
+ /* Assume initialization is going to fail */
+ noCompositeExtension = TRUE;
+
for (s = 0; s < screenInfo.numScreens; s++) {
ScreenPtr pScreen = screenInfo.screens[s];
VisualPtr vis;
@@ -731,4 +734,7 @@ CompositeExtensionInit (void)
return;
miRegisterRedirectBorderClipProc (compSetRedirectBorderClip,
compGetRedirectBorderClip);
+
+ /* Initialization succeeded */
+ noCompositeExtension = FALSE;
}