mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Set noCompositeExtension to TRUE when failing to initialize the extension (e.g. when Xinerama is enabled).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user