summaryrefslogtreecommitdiff
path: root/composite
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2008-09-17 15:48:56 -0700
committerAaron Plattner <aplattner@nvidia.com>2008-09-17 17:00:46 -0700
commit97b9374a8af5a4cc52f9074feb4ce40cf0b90796 (patch)
tree6d62318c7ac613efaf9ae5cdbbf2eccb66b95d95 /composite
parentb4762c0245ed2966606171cf27f40aa745fdc76e (diff)
Conditionalize Composite-based backing store on pScreen->backingStoreSupport.
(cherry picked from commit 37876602957924c7cff759a800eddd574ee2385a)
Diffstat (limited to 'composite')
-rw-r--r--composite/compinit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/composite/compinit.c b/composite/compinit.c
index 495188e59..b2a9861ea 100644
--- a/composite/compinit.c
+++ b/composite/compinit.c
@@ -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;