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:
parent
942e18e17e
commit
3f4edd2e3f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user