diff options
author | Adam Jackson <ajax@redhat.com> | 2019-10-09 11:27:12 -0400 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2019-10-30 16:26:01 +0000 |
commit | ff310903f34ac34c916ad74e919d1ac12aea4715 (patch) | |
tree | ebf341ad2e56854c931b8218176d09c688882dc8 /composite | |
parent | 89a9927b1e5ac416441a33b44abddf8372edfe6a (diff) | |
download | xserver-ff310903f34ac34c916ad74e919d1ac12aea4715.tar.gz |
mi: Add a default no-op miSourceValidate
Slightly simplifies the callers since they don't need to check for
non-NULL anymore.
I do extremely hate the workarounds here to suppress misprite taking the
cursor down though. Surely there's a better way.
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Diffstat (limited to 'composite')
-rw-r--r-- | composite/compinit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/composite/compinit.c b/composite/compinit.c index b19b3da62..69abb0a40 100644 --- a/composite/compinit.c +++ b/composite/compinit.c @@ -180,9 +180,8 @@ compSourceValidate(DrawablePtr pDrawable, pScreen->SourceValidate = cs->SourceValidate; if (pDrawable->type == DRAWABLE_WINDOW && subWindowMode == IncludeInferiors) compPaintChildrenToWindow((WindowPtr) pDrawable); - if (pScreen->SourceValidate) - (*pScreen->SourceValidate) (pDrawable, x, y, width, height, - subWindowMode); + (*pScreen->SourceValidate) (pDrawable, x, y, width, height, + subWindowMode); cs->SourceValidate = pScreen->SourceValidate; pScreen->SourceValidate = compSourceValidate; } |