From 3f4edd2e3ff84c38df563b09c2e8c32404db38f7 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 8 Oct 2014 17:18:32 +0200 Subject: xinerama: Fix access mode in GetImage's drawable lookup Signed-off-by: Adam Jackson Reviewed-by: Julien Cristau Signed-off-by: Keith Packard --- Xext/panoramiXprocs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xext/panoramiXprocs.c b/Xext/panoramiXprocs.c index aa3859fdb..0122ff3a8 100644 --- a/Xext/panoramiXprocs.c +++ b/Xext/panoramiXprocs.c @@ -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; -- cgit v1.2.3