diff options
author | Eric Anholt <eric@anholt.net> | 2007-03-26 15:55:38 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-03-27 17:31:34 -0700 |
commit | 8afc7e2eb3ebec48d3879bf269143259c8bc18c8 (patch) | |
tree | e447f3c7c3701ec6d2e586d631790d2ab2ecb0cb /composite | |
parent | 6ed08949af4f7ac09170d3d9581e4092b24a84ee (diff) |
Refuse to initialize Composite if Render is not present.
Composite relies on the presence of Render, in particular for the automatic
compositing.
Diffstat (limited to 'composite')
-rw-r--r-- | composite/compext.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/composite/compext.c b/composite/compext.c index 4c25cc7da..3a9f896df 100644 --- a/composite/compext.c +++ b/composite/compext.c @@ -678,6 +678,12 @@ CompositeExtensionInit (void) ExtensionEntry *extEntry; int s; + /* Ensure that Render is initialized on all screens. */ + for (s = 0; s < screenInfo.numScreens; s++) { + if (GetPictureScreenIfSet(screenInfo.screens[s]) == NULL) + return; + } + CompositeClientWindowType = CreateNewResourceType (FreeCompositeClientWindow); if (!CompositeClientWindowType) return; |