summaryrefslogtreecommitdiff
path: root/composite/compinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'composite/compinit.c')
-rw-r--r--composite/compinit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/composite/compinit.c b/composite/compinit.c
index 38033f215..45d3d8ce5 100644
--- a/composite/compinit.c
+++ b/composite/compinit.c
@@ -149,18 +149,17 @@ compGetImage(ScreenPtr pScreen, DrawablePtr pDrawable,
}
static void
-compSourceValidate(DrawablePtr pDrawable,
+compSourceValidate(ScreenPtr pScreen, DrawablePtr pDrawable,
int x, int y,
int width, int height, unsigned int subWindowMode)
{
- ScreenPtr pScreen = pDrawable->pScreen;
CompScreenPtr cs = GetCompScreen(pScreen);
pScreen->SourceValidate = cs->SourceValidate;
if (pDrawable->type == DRAWABLE_WINDOW && subWindowMode == IncludeInferiors)
compPaintChildrenToWindow((WindowPtr) pDrawable);
if (pScreen->SourceValidate)
- (*pScreen->SourceValidate) (pDrawable, x, y, width, height,
+ (*pScreen->SourceValidate) (pScreen, pDrawable, x, y, width, height,
subWindowMode);
cs->SourceValidate = pScreen->SourceValidate;
pScreen->SourceValidate = compSourceValidate;