Adam Jackson <a...@redhat.com> writes: > Signed-off-by: Adam Jackson <a...@redhat.com> > --- > 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. -- keith.pack...@intel.com
pgpWCfc6bcK_v.pgp
Description: PGP signature
_______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel