Conditionalize Composite-based backing store on pScreen->backingStoreSupport.

(cherry picked from commit 3787660295)
This commit is contained in:
Aaron Plattner 2008-09-17 15:48:56 -07:00
parent b4762c0245
commit 97b9374a8a

View File

@ -114,7 +114,8 @@ compChangeWindowAttributes(WindowPtr pWin, unsigned long mask)
pScreen->ChangeWindowAttributes = cs->ChangeWindowAttributes;
ret = pScreen->ChangeWindowAttributes(pWin, mask);
if (ret && (mask & CWBackingStore)) {
if (ret && (mask & CWBackingStore) &&
pScreen->backingStoreSupport != NotUseful) {
if (pWin->backingStore != NotUseful) {
compRedirectWindow(serverClient, pWin, CompositeRedirectAutomatic);
pWin->backStorage = (pointer) (intptr_t) 1;