summaryrefslogtreecommitdiff
path: root/composite
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2019-03-14 16:34:40 -0400
committerAdam Jackson <ajax@nwnk.net>2019-04-12 21:53:03 +0000
commit0f477cc68bbfe37555f73313dcc50b303c3ca210 (patch)
tree1c4032f4a521868e7c2715cc5665638f9d16a3a0 /composite
parent4e101e7e3b4d3e6cdb38f1cd60a764aaade5c4a2 (diff)
dix, composite: Optimize setting window backing store state
We hide CWBackingStore from the screen hook if nothing's actually changing, which means compChangeWindowAttributes no longer needs to compare the requested state with the present one.
Diffstat (limited to 'composite')
-rw-r--r--composite/compinit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/composite/compinit.c b/composite/compinit.c
index 6ea33ea4e..539dc0460 100644
--- a/composite/compinit.c
+++ b/composite/compinit.c
@@ -108,11 +108,11 @@ compInstallColormap(ColormapPtr pColormap)
static void
compCheckBackingStore(WindowPtr pWin)
{
- if (pWin->backingStore != NotUseful && !pWin->backStorage) {
+ if (pWin->backingStore != NotUseful) {
compRedirectWindow(serverClient, pWin, CompositeRedirectAutomatic);
pWin->backStorage = TRUE;
}
- else if (pWin->backingStore == NotUseful && pWin->backStorage) {
+ else {
compUnredirectWindow(serverClient, pWin,
CompositeRedirectAutomatic);
pWin->backStorage = FALSE;