xinerama: Fix access mode in GetImage's drawable lookup

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Adam Jackson 2014-10-08 17:18:32 +02:00 committed by Keith Packard
parent 942e18e17e
commit 3f4edd2e3f

View File

@ -1908,7 +1908,7 @@ PanoramiXGetImage(ClientPtr client)
}
rc = dixLookupResourceByClass((void **) &draw, stuff->drawable,
XRC_DRAWABLE, client, DixWriteAccess);
XRC_DRAWABLE, client, DixReadAccess);
if (rc != Success)
return (rc == BadValue) ? BadDrawable : rc;