Adam Jackson <[email protected]> writes:

> Signed-off-by: Adam Jackson <[email protected]>
> ---
>  damageext/damageext.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/damageext/damageext.c b/damageext/damageext.c
> index 886f56d..4928379 100644
> --- a/damageext/damageext.c
> +++ b/damageext/damageext.c
> @@ -687,9 +687,8 @@ PanoramiXDamageCreate(ClientPtr client)
>                  rc = BadAlloc;
>              } else {
>                  damage->damage[i] = pDamage;
> -                rc = dixLookupDrawable(&pDrawable, draw->info[i].id, client,
> -                                       M_WINDOW,
> -                                       DixGetAttrAccess | DixReadAccess);
> +                rc = dixLookupWindow((WindowPtr *)&pDrawable, 
> draw->info[i].id,
> +                                     client, DixGetAttrAccess | 
> DixReadAccess);

This does change the error code from BadMatch to BadWindow, if the
object isn't found. Given that this is a Drawable on the wire, we should
leave this alone, even though an error here would indicate a bug in the
xinerama code.

-- 
[email protected]

Attachment: pgpWCfc6bcK_v.pgp
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to