summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2014-10-08 17:18:32 +0200
committerKeith Packard <keithp@keithp.com>2014-10-23 14:29:49 -0700
commit3f4edd2e3ff84c38df563b09c2e8c32404db38f7 (patch)
tree5a7fb39b5c02e21547c3d01bc54b09306658be0e
parent942e18e17e334d7a25f8c1dcc6f5c3711eeb6a7d (diff)
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>
-rw-r--r--Xext/panoramiXprocs.c2
1 files changed, 1 insertions, 1 deletions
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;