[PATCH] xinerama: Fix access mode in GetImage's drawable lookup

Adam Jackson ajax at redhat.com
Wed Oct 8 08:18:32 PDT 2014


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 Xext/panoramiXprocs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Xext/panoramiXprocs.c b/Xext/panoramiXprocs.c
index d84684e..3ab8d33 100644
--- a/Xext/panoramiXprocs.c
+++ b/Xext/panoramiXprocs.c
@@ -1910,7 +1910,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;
 
-- 
1.9.3



More information about the xorg-devel mailing list