[PATCH] RRSelectInput should check for DixRecieveAccess not DixWriteAccess

Alan Coopersmith alan.coopersmith at sun.com
Mon Mar 9 13:24:18 PDT 2009


Matches the path taken for XSelectInput() calls in ProcChangeWindowAttributes,
which checks for  DixReceiveAccess for  requesting events from the window.

Signed-off-by: Alan Coopersmith <alan.coopersmith at sun.com>
---
 randr/rrdispatch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/randr/rrdispatch.c b/randr/rrdispatch.c
index 5a2ea71..0925875 100644
--- a/randr/rrdispatch.c
+++ b/randr/rrdispatch.c
@@ -76,7 +76,7 @@ ProcRRSelectInput (ClientPtr client)
     int		rc;
 
     REQUEST_SIZE_MATCH(xRRSelectInputReq);
-    rc = dixLookupWindow(&pWin, stuff->window, client, DixWriteAccess);
+    rc = dixLookupWindow(&pWin, stuff->window, client, DixReceiveAccess);
     if (rc != Success)
 	return rc;
     pHead = (RREventPtr *)SecurityLookupIDByType(client,
-- 
1.5.6.5



More information about the xorg-devel mailing list